Photo by Adi Goldstein on Unsplash

At Datacraft, we use Clojure for most of our machine learning development, where we noticed the absence of a standalone library that’s capable of binary and multi-class classification metrics. Libraries such as Clj-ml and Cortex package classification metrics but these are not available as a separate library.

Hence, Confuse.

We’ve been developing it (and using it internally) for some time now. It has support the following metrics:

Evaluation metrics for binary classification

Counts

True/False positives and negatives

Binary class Metrics

sensitivity / specificity / true positive rate

specificity / true negative rate

false positive/negative rate

precision

F1-score

accuracy and mis-classification rate

confusion matrix

Multi-class metrics