Fit a frozen monotone quantile calibrator from training data
Source:R/singlesample-additional-within-sample.R
fit_frozen_quantile.RdEstimates per-feature empirical quantile grids on a training cohort and
freezes them for deployment. At apply time
(apply_frozen_quantile), test-sample feature values are
mapped to their empirical quantile under the training distribution and then
transformed back to the corresponding training-scale value. Tail values
beyond the training range are clamped (intentional winsorisation, documented
limitation).
Usage
fit_frozen_quantile(
x_train,
n_quantiles = 1000L,
na_action = c("median", "leave_na")
)