SI425 : NLP
Set 6 Logistic Regression
Fall 2020 : Chambers
SI425 : NLP Set 6 Logistic Regression Fall 2020 : Chambers Last - - PowerPoint PPT Presentation
SI425 : NLP Set 6 Logistic Regression Fall 2020 : Chambers Last time Naive Bayes Classifier Given X, what is the most probable Y? Y arg max P ( Y y ) P ( X | Y y ) = = new k i k y k i Problems with
Fall 2020 : Chambers
i k i k y new
k
k k y
k
shall, methinks
confident.
seems confident — but their opinions already mutually informed each
i
Shakespeare 1.31 0.49
Dickens
0.72 0.1
i
Shakespeare
Dickens
c ∑ i
Z = ∑
c ∑ i
exp(wi,c fi(x))
i
it was the best
he she times pizza
worst 2 1 2 1 2 2 1
0.05 0.0 0.42 0.12 0.3 0.2 1.1
0.3 0.03 0.21 -0.03 -0.32 0.01 0.23 0.41
0.18
Dickens w
Shakespeare w
f(x)
Where do these weights come from?
K
k=1
Example! 0.0 when p(y|x)=1.0
K
k=1
The feature value!
Logistic regression 1 or 0