QuantifierCalibrator#

class mlquantify.calibration.QuantifierCalibrator[source]#

Post-hoc calibration of quantifier prevalence estimates.

Note

This class is a placeholder: its semantics are not yet defined and both methods raise NotImplementedError. Use ClassifierCalibrator to calibrate the posteriors a quantifier consumes.

fit(y_true, y_pred)[source]#

Fit the calibration map from held-out labels and predictions.

fit_predict(y_true, y_pred)[source]#

Convenience: fit(y_true, y_pred) then predict(y_pred).

predict(y_pred)[source]#

Apply the fitted calibration map to new predictions.