Evaluation#
Evaluation of the models: predictive performance, clustering quality, size of the trees and fairness, each as a dictionary of metrics.
All the functions but evaluate_interpretability use only the output of a model (predictions,
cluster labels, groups; evaluate_clustering_internal also the data), so they evaluate any model.
evaluate_interpretability reads the structure of the model: it works with the RuleTree trees
and the scikit-learn decision trees. See Evaluating the models.
Accuracy, F1, precision and recall of the predictions of a classifier and, with the class probabilities, ROC AUC and average precision. |
|
Errors and explained variance of the predictions of a regressor, with one or several targets. |
|
Agreement between a clustering and known classes (external metrics). |
|
Quality of a clustering from the data alone (internal metrics). |
|
Fairness of the groups of a partition (clusters, leaves or predicted classes) with respect to a sensitive attribute. |
|
Size of a fitted RuleTree or scikit-learn decision tree: the fewer leaves and the shallower the tree, the shorter its rules. |