- The library implements various metrics for evaluating machine learning algorithms
- Includes some of the Kaggle Competitions metrics.
>>> from evaluations.classification import confusion_matrix_binary
>>> confusion_matrix_binary([1, 1, 0, 0], [1, 0, 0, 1])
{'tp': 1, 'tn': 1, 'fp': 1, 'fn': 1}
You can use pip to install evaluations:
pip install evaluations
You can clone and install the latest version of the library from GitHub:
pip install -U git+https://github.com/yisaienkov/evaluations
The full documentation is available at https://evaluations.readthedocs.io/.