Machine Learning No.3: Logistic Regression

1. Decision boundary

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

so the hyppthesis is:

2. cost function

to fit parameters θ:

to make a prediction given new x:

Output       

3. Gradient Descent

Repeat {

  

  (simultaneously update all θj)

}

原文地址:https://www.cnblogs.com/yingzhongwen/p/3156177.html