You are on page 1of 8

Logistic Regression

用sigmoid function

Hypothesis Representation
ttte.PNG

Cost Function
Capture.PNG

Gradient Descendant
Capture.PNG

MultiClass Classification
假设K个class
对每一个class进行分类,总共做K次

Overfitting
Solution

1. Reduce the number of features:


Manually select which features to keep.
Use a model selection algorithm (studied later in the course).
2. Regularization
Keep all the features, but reduce the magnitude of parameters θ(j)
Regularization works well when we have a lot of slightly useful features.

Regulariation(Linear Regression)
Cost function

在后面加一个降低theta的算式
Capture.PNG

Gradient Descent

Capture.PNG
Normal Equation

Capture.PNG
Regulariation(Logistics Regresion)
Cost function

Capture.PNG

Gradient Descent

Capture.PNG

You might also like