Linear predictors
x-> f -> y
- binary classification - y has two elements
-
Types
multiclass classification
- ranking
-
Data
specifies (x, y)
traning data: what the function could do
Framework
D_train -> learner -> f
- x -> f -> y
- general machine leaning
-
Feature extraction
whether a string is an email address?
feature extractor
- output a set of (feature name, feature value) pairs
- name is important
- form a feature vector
- a weight vector
- Score
- Margin
- how correct we are
- arbitrary
- output a set of (feature name, feature value) pairs
linear classifier
Loss function
- output is usually a number
- input could be high dimensional
Bianry classification loss function
residual
- distance from predicted value and the true value
- squared loss
- not very large
- not smooth
Train loss
Least squares regression
- TrainLoss
- Gradient descent
- calculus - chain rule TrainLoss
- very slow
- SGD - an optimization for GD
- Pick up and update
- step size
- large - faster
- small - precise - slow
Replacement of 0-1 loss function
- Hinge loss
- Logistic regression
