GokuMohandas / Made-With-ML

Learn how to design, develop, deploy and iterate on production-grade ML applications.
https://madewithml.com
MIT License
37.1k stars 5.88k forks source link

Module not imported but called in the section Evaluating Machine Learning Model section #205

Closed sahajrajmalla closed 2 years ago

sahajrajmalla commented 2 years ago

The website link https://madewithml.com/courses/mlops/evaluation/#intuition of Coarse-grained section suggests to import function precision_recall_curve by

from sklearn.metrics import precision_recall_curve

but another function precision_recall_fscore_support from the same module path is called for computing evaluation metrics by

overall_metrics = precision_recall_fscore_support(y_test, y_pred, average="weighted")
GokuMohandas commented 2 years ago

Good catch, thank you @sahajrajmalla. I'll push the updates later this week with some more incoming changes.