Machine Learning No.3: Logistic Regression

1. Decision boundary

Machine Learning No.3: Logistic Regression_第1张图片

when hθ(x) > 0, g(z) = 1; when hθ(x) < 0, g(z) = 0.

so the hyppthesis is:

2. cost function

Machine Learning No.3: Logistic Regression_第2张图片

to fit parameters θ:

to make a prediction given new x:

Output       

3. Gradient Descent

Repeat {

  

  (simultaneously update all θj)

}

 

 

你可能感兴趣的:(learning,machine)