ChrisVilches/Machine-Learning

`f1_score` and `confusion_matrix` probably used in a wrong way.

Opened this issue · 1 comments

I might have missed the pos_label=0 in some of my programs. This would lead to incorrect results.

print(f1_score(test_y, predicted_y, pos_label=0))

TODO: Check the programs where f1_score and confusion_matrix are used, and verify correctness.

This program may be one example (but others may be as well): logistic_regression_gender.ipynb