Lecture13 - ML Linear & Log-Linear Models
Lecture13 - ML Linear & Log-Linear Models
Lecture13 - ML Linear & Log-Linear Models
Processing
Lecture 13:
Machine Learning: Linear and Log-Linear Models
12/4/2019
COMS W4705
Yassine Benajiba
Intro
Intro
Machine Learning and NLP
• We have encountered many different situations where we
had to make a prediction:
x2
decision boundary
Regression Classification
Linear Classification
Training ML models
Training Data ML algorithm function h(x)=y
• Classification error:
Training ML models
Training Data ML algorithm function h(x)=y
• Empirical error/risk:
• Model selection.
• Regularization.
• Cross validation.
wn
Xin
activation function
Linear Models
• We have chosen a function class (linear separators).
• Specified by parameter w.
• Update rule:
x2
perceptron cannot learn this
Feature Functions
• In NLP we often need to make multi-class decisions.
Linear models provide only binary decisions.
• (ti-1,ti)
• (IN,JJ)