Resampling design
With sampling = "bootstrap", training rows are sampled with replacement.
With sampling = "split", they are sampled without replacement. When
sample_fraction < 1, performance is evaluated on records not used for
fitting. When sample_fraction = 1, performance is evaluated on the sampled
training data and should be interpreted as an in-sample stability measure.
Character columns and factor columns are converted to factors with levels
taken from the full input data before resampling. For factor variables used
in the model, the training sample is augmented when needed so every observed
level is represented at least once. This prevents prediction failures when a
level is present in the evaluation data but absent from a particular training
sample.
Actuarial interpretation
The resampled RMSE distribution is useful for comparing the stability of
alternative frequency, severity or risk-premium specifications under
repeated portfolio sampling. A narrow distribution indicates that the
measured error is relatively insensitive to the sampled records; a wide
distribution indicates greater sampling sensitivity.
This is an experience-based diagnostic and does not by itself represent the
full uncertainty in future claims, trend, portfolio mix or model
specification. Sparse factor levels are retained in training samples where
necessary to avoid new-level prediction failures. That protection is useful
operationally, but should be considered when interpreting the resampling
design.