Evaluation and validation#
Evaluation, validation and benchmarking.
Segmentation and clustering metrics, retrieval curves, stability, sensitivity, statistical tests and benchmarks.
Classes#
|
Systematic comparison of methods on data sets. |
Functions#
|
Precision, recall and F1 of change points with a tolerance |
|
F1 of change points (see |
|
Covering of the true segmentation by the predicted one: \(C(G,G')=\frac1T\sum_{A\in G}\lvert A\rvert\max_{A'\in G'}J(A,A')\) with the Jaccard index \(J\) of the segments (1 = identical). |
|
Hausdorff distance of the two change point sets (inf if exactly one is empty). |
|
Absolute difference of the numbers of change points. |
|
Mean distance of every true change point to the nearest predicted one. |
|
Adjusted Rand index, adjusted mutual information and normalized mutual information of per-sample state (or segment) labels. |
|
All segmentation scores at once. |
|
Fraction of objects in the majority class of their cluster. |
|
Accuracy after the optimal one-to-one matching of clusters and classes (Hungarian algorithm). |
|
ARI, AMI, NMI, purity and matched accuracy. |
|
Mean silhouette width from a distance matrix (noise label -1 ignored). |
|
Smallest between-cluster distance divided by the largest cluster diameter. |
Bezdek's partition coefficient of a membership matrix (N, c). |
|
Bezdek's partition entropy of a membership matrix (N, c). |
|
|
Leave-one-out k-NN classification accuracy from a distance matrix ( |
|
Precision at recall levels |
|
Mean average precision of leave-one-out retrieval. |
|
Stability of a segmentation under perturbations. |
|
Mean pairwise ARI of clusterings of random subsamples, compared on the objects they share. |
|
Run |
|
Friedman test and Nemenyi critical difference. |
|
Pairwise Wilcoxon signed-rank tests with Holm's correction; returns a pandas DataFrame (method_a, method_b, p_value, p_holm, significant). |
|
Grid search of segmenter parameters. |