cuml.metrics#
Classification and Distance Metrics#
Accuracy classification score. |
|
Compute confusion matrix to evaluate the accuracy of a classification. |
|
Calculates the "Kullback-Leibler" Divergence The KL divergence tells us how well the probability distribution Q approximates the probability distribution P It is often also used as a 'distance metric' between two probability distributions (not symmetric) |
|
Log loss, aka logistic loss or cross-entropy loss. |
|
Compute Area Under the Receiver Operating Characteristic Curve (ROC AUC) from prediction scores. |
|
Compute precision-recall pairs for different probability thresholds |
|
Expresses to what extent the local structure is retained in embedding. |
Regression Metrics#
Mean absolute error regression loss |
|
Mean squared error regression loss |
|
Mean squared log error regression loss |
|
Median absolute error regression loss. |
|
\(R^2\) (coefficient of determination) regression score function. |
Clustering Metrics#
Adjusted_rand_score is a clustering similarity metric based on the Rand index and is corrected for chance. |
|
cython_entropy(clustering, base=None) -> float |
|
cython_homogeneity_score(labels_true, labels_pred) -> float |
|
Calculate the mean silhouette coefficient for the provided data. |
|
Calculate the silhouette coefficient for each sample in the provided data. |
|
cython_completeness_score(labels_true, labels_pred) -> float |
|
cython_mutual_info_score(labels_true, labels_pred) -> float |
|
cython_v_measure(labels_true, labels_pred, beta=1.0) -> float |
Pairwise Distances and Kernels#
Compute the distance matrix from a vector array |
|
Compute the distance matrix from a vector array |
|
Calculate the euclidean distances in the presence of missing values. |
|
Compute the kernel between arrays X and optional array Y. |