mlquantify.counting#

Counting Methods#

CC

Classify and Count (CC) quantifier.

PCC

Probabilistic Classify and Count (PCC) quantifier.

ACC

Adjusted Classify and Count (ACC) quantifier.

ThresholdAdjustment

Abstract base class for ROC-threshold adjustment quantifiers.

TAC

Threshold Adjusted Count (TAC) quantifier.

TX

Threshold X (TX) quantifier.

TMAX

Threshold MAX (TMAX) quantifier.

T50

Threshold 50 (T50) quantifier.

MS

Median Sweep (MS) quantifier.

MS2

Median Sweep 2 (MS2) quantifier.

FM

Friedman Method (FM) quantifier.

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.