-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Splitting the metrics module in sub-module #3425
Copy link
Copy link
Closed
Labels
APIEasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolve
Description
Currently, the metrics.py module is becoming huge and contains 2345 lines. It becomes difficult to enter in the module to newcomers. I propose to split sklearn.metrics.metrics
in
sklearn.metrics.classificationwhich would contains all classification metrics without score involvedsklearn.metrics.regressionwhich would contains all regression metricssklearn.metrics.rankingorsklearn.metrics.thresholdwhich would contains all classification metrics with a score involved.
The sklearn/metrics/tests/test_metrics.py, which contains 2710 lines, would be split in 4 testing files:
sklearn/metrics/tests/test_invariance.pywith invariance tests and common tests to all metricssklearn/metrics/tests/test_classification.pysklearn/metrics/tests/test_regression.pysklearn/metrics/tests/test_ranking.pyorsklearn/metrics/tests/test_threshold.py
What do you think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
APIEasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolve