trekhleb / homemade-machine-learning

🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An error in "Math | Logistic Regression"

ghosthamlet opened this issue · comments

In the [section:] Hypothesis (the Model) (https://github.com/trekhleb/homemade-machine-learning/tree/master/homemade/logistic_regression#hypothesis-the-model),
Under this line "Now we my write down the hypothesis as follows:"
Predict y = 0 ... < 0.5 ... >= 0, Predict y = 1 ... > 0.5 ... < 0,
may should be ... < 0.5 ... < 0, ... >= 0.5 ... >= 0

@ghosthamlet , thanks for noticing that! It is fixed now.