netcal.metrics.regression.QuantileLoss¶
- class netcal.metrics.regression.QuantileLoss¶
Pinball aka quantile loss within regression calibration to test for quantile calibration of a probabilistic regression model. The Pinball loss is an asymmetric loss that measures the quality of the predicted quantiles. Given a probabilistic regression model that outputs a probability density function (PDF)
targeting the ground-truth , we further denote the cumulative as and the (inverse) percent point function (PPF) as for a certain quantile level .The Pinball loss is given by
Methods
__init__
()measure
(X, y, q, *[, kind, reduction])Measure quantile loss for given input data either as tuple consisting of mean and stddev estimates or as NumPy array consisting of a sample distribution.