mlquantify.adjust_counting#
Adjust Counting Methods#
Classify and Count (CC) quantifier. |
|
Probabilistic Classify and Count (PCC) quantifier. |
|
Friedman Method for quantification adjustment. |
|
Generalized Adjusted Count method. |
|
Probabilistic Generalized Adjusted Count (GPAC) method. |
|
Adjusted Count (ACC) — baseline threshold correction. |
|
X method — threshold where \(\text{TPR} + \text{FPR} = 1\). |
|
MAX method — threshold maximizing \(\text{TPR} - \text{FPR}\). |
|
T50 — selects threshold where \(\text{TPR} = 0.5\). |
|
Median Sweep (MS) — median prevalence estimate across all thresholds. |
|
MS2 — Median Sweep variant constraining \(|\text{TPR} - \text{FPR}| > 0.25\). |
|
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 the True Positive Rate (Recall) for a binary classification task. |
|
Compute the False Positive Rate for a binary classification task. |
|
Compute the confusion matrix table for a binary classification task. |