Professional Documents
Culture Documents
Lecture 7
Lecture 7
Engineering
Week 7
Non-linear regression
• ILOs
• Understand the principles of polynomial regression, the concept of
regularization;
• Understand the principles of logistic regression, and its use in binary
classification;
• Understand the principles of multiple classification
What if a linear trend is not available
• Data
• Collect more data
Model selection
• Train different models on the training set and compare results on
validation set
• Cross-validation (usually when dataset size is small)
• Use different partitions of the training data to ensure that the model is
generalizable
Validation data
Regularization
• Regularization is a good way to reduce overfitting
• Penalize large parameter values () when training the model
• Ridge regression
• Lasso regression
• Elastic Net
Early stopping (for iterative methods)
Logistic regression
• Instead of transforming features, logistic regression transforms the
output to a ”probability” (a number between zero and one) using the
sigmoid/logistic function
Logistic regression loss function
• log loss/binary cross entropy
Between 0 and 1
Sum up to1 The softmax function