Skip to content

Note

Click here to download the full example code

Compare Classification ScoreCards

# mkdocs_gallery_thumbnail_path = 'images/example_thumnail.png'
import numpy as np

from krisi import compare, score

scorecards = [
    score(y=np.random.randint(0, 2, 1000), predictions=np.random.randint(0, 2, 1000))
    for _ in range(5)
]
compare(
    scorecards, sort_by="accuracy", metric_keys=["recall_binary", "f_one_score_binary"]
)

Total running time of the script: ( 0 minutes 0.000 seconds)

Download Python source code: evaluate_compare_classification.py

Download Jupyter notebook: evaluate_compare_classification.ipynb

Gallery generated by mkdocs-gallery