mlquantify.counting#

Counting Methods#

CC

Classify and Count (CC) quantifier.

PCC

Probabilistic Classify and Count (PCC) quantifier.

ThresholdAdjustment

Abstract base class for ROC-threshold adjustment quantifiers.

TAC

Threshold Adjusted Count (TAC).

TX

Threshold X (TX).

TMAX

Threshold MAX (TMAX).

T50

T50 — threshold where TPR is closest to 0.5.

MS

Median Sweep (MS).

MS2

Median Sweep 2 (MS2).

FM

Friedman Method (FM).

GACC

Generalized Adjusted Classify and Count (GACC).

GPACC

Generalized Probabilistic Adjusted Classify and Count (GPACC).

evaluate_thresholds

Evaluate a range of classification thresholds to compute the corresponding True Positive Rate (TPR) and False Positive Rate (FPR) for a binary quantification 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.

compute_table

Compute the confusion matrix table for a binary classification task.