User Guide#
- 1. Foundations
- 2. Aggregative Quantification
- 2.1. Using Aggregative Quantification Methods
- 2.2. General Concept
- 2.3. Counting-Based Quantifiers
- 2.4. Counters For Quantification
- 2.5. Adjusted Counting
- 2.5.1. The Adjustment Formula
- 2.5.2. ACC — Adjusted Classify and Count (hard predictions)
- 2.5.3. ThresholdAdjustment — Base Class for ROC-Threshold Methods
- 2.5.4. TAC — Threshold Adjusted Count (fixed threshold)
- 2.5.5. TX — Threshold X (symmetric ROC point)
- 2.5.6. TMAX — Maximum TPR−FPR Separation
- 2.5.7. T50 — TPR ≈ 0.5 Threshold
- 2.5.8. MS — Median Sweep
- 2.5.9. MS2 — Median Sweep with Constraint
- 2.5.10. Comparing Threshold-Adjustment Methods
- 2.5.11. Threshold Adjustment
- 2.6. Likelihood Methods
- 2.6.1. Prior Probability Shift — The Core Assumption
- 2.6.2. MLPE — Maximum Likelihood Prevalence Estimation (trivial baseline)
- 2.6.3. EMQ — Expectation-Maximization Quantifier (SLD)
- 2.6.4. CDE — CDE-Iterate (threshold-adjustment via cost ratios)
- 2.6.5. Method Comparison
- 2.6.6. Maximum Likelihood Prevalence Estimation (MLPE)
- 2.6.7. Expectation Maximization for Quantification (EMQ)
- 2.7. Distribution Matching
- 2.8. Nearest Neighbours
- 3. Non Aggregative Quantification
- 4. Meta Quantification
- 5. Model Selection and Evaluation
- 5.1. Evaluation Protocols
- 5.1.1. APP — Artificial Prevalence Protocol
- 5.1.2. NPP — Natural Prevalence Protocol
- 5.1.3. UPP — Uniform Prevalence Protocol
- 5.1.4. Choosing a Protocol
- 5.1.5. Protocols for Quantification
- 5.1.6. Artificial-Prevalence Protocol (APP)
- 5.1.7. Natural-Prevalence Protocol (NPP)
- 5.1.8. Uniform Prevalence Protocol (UPP)
- 5.1.9. Personalized Prevalence Protocol (PPP)
- 5.1.10. References
- 5.2. Hyperparameter Tuning
- 5.3. Evaluation Metrics
- 5.4. Single Label Quantification (SLQ) Metrics
- 5.4.1. AE (Absolute Error)
- 5.4.2. SE (Squared Error)
- 5.4.3. MAE (Mean Absolute Error)
- 5.4.4. MSE (Mean Squared Error)
- 5.4.5. KLD (Kullback-Leibler Divergence)
- 5.4.6. RAE (Relative Absolute Error)
- 5.4.7. NAE (Normalized Absolute Error)
- 5.4.8. NRAE (Normalized Relative Absolute Error)
- 5.4.9. NKLD (Normalized Kullback-Leibler Divergence)
- 5.5. Regression-Based Quantification (RQ) Metrics
- 5.6. Ordinal Quantification (OQ) Metrics
- 5.1. Evaluation Protocols
- 6. Confidence Intervals
- 7. Building a Quantifier
- 8. Mlquantify methods
- 9. Core Components