Show that predict() is just a cut at 0.5: return whether (proba >= 0.5) matches…

Machine Learning · from Thresholds, ROC and PR

predict_probathresholdroc_curveroc_auc_scoreprecision_recall_curveaverage_precision_score

Putting the kettle on…

Starting up…

Exercise 1

Show that predict() is just a cut at 0.5: return whether (proba >= 0.5) matches predict() exactly, as a bool.

your answer
stuck? the lesson behind it
Thresholds, ROC and PR
predict() hides a choice you should be making yourself