LogisticRegression.predict versus LogisticRegression.predict_proba
Follow
- LogisticRegression.predict directly gives the class ( 0 or 1)
- LogisticRegression.predict_proba gives the probability of belonging to 0 and 1.
- In LogisticRegression.predict, we have no control over threshold.
- In LogisticRegression.predict_proba, we can play around with threshold to obtain desired results.
Comments
0 comments
Article is closed for comments.