estimate_antitonic_score
Guide & worked example · Source
estimate_antitonic_score(
residuals,
*,
symmetric=True,
k=3000,
kernel_grid_size=2 ** 15,
bandwidth=None,
)Estimate the antitonic projection of an error score from residuals.
The estimator follows asm’s practical path: smooth residuals by Gaussian KDE, evaluate the density quantile function, project its discrete derivative onto the nonincreasing cone by PAVA, and interpolate the projected score.