scoreval
An visulized evaluation toolkit for model score.
The model score will be evaluated static, on the full dataset. And further evaluate along date.
This aims to help machine learning modelers to evaluate the result effictively and efficiently.
Effectiveness
- static method: on the full eval data set.
- PR chart : average performance of the score.
- WOE/IV : indicative power of score binning.
- time method: metrics along date.
- QTL daily : show stability of the score
- Precision daily: show target precision above a score cut-off.
- Recall daily: show target coverage above a score cut-off.
Efficiency
- Predefined process & metrics: No need to design and analysis on metrics.
- Deal with multiple model scores: The tool will show charts for multiple model scores for comparison.
Installation
pip install score-eval
Input
The input of this package include the below parts:
- Model: a 'model' that implements the 'predict' method, it comes from most common used modeling tools like sklearn, tensorflow etc. The tool will definitely call model.predict() to get the score on the data set.
- Data set: a data set containing at least 3 columns (row_id, date, label), for calculating the metrics and by dates. If date does not appear, the time method will throw error during run.
Output
Pack of charts to evaluate and understand your model. See the link for more details:
https://github.com/rexzhang2014/scoreval/blob/main/tests/score-eval-example.ipynb
If it cannot be reached, please try:
https://nbviewer.org/github/rexzhang2014/scoreval/blob/main/tests/score-eval-example.ipynb