mlquantify.utils.method#

sqEuclidean

Compute the squared Euclidean distance between two probability distributions.

probsymm

Compute the probabilistic symmetric distance between two probability distributions.

topsoe

Compute the Topsøe distance between two probability distributions.

hellinger

Compute the Hellinger distance between two probability distributions.

get_scores

Generate true labels and predicted probabilities using a machine learning model.

getHist

Calculate histogram-like bin probabilities for a given set of scores.

MoSS

Generate a synthetic dataset using the MoSS method.

ternary_search

This function applies Ternary search

compute_table

Compute the confusion matrix table for a binary classification task.

compute_tpr

Compute the True Positive Rate (Recall) for a binary classification task.

compute_fpr

Compute the False Positive Rate for a binary classification task.

adjust_threshold

Adjust the threshold for a binary quantification task to maximize the True Positive Rate.