Feature processor for EQRN
Usage
process_features(
X,
intermediate_q_feature,
intermediate_quantiles = NULL,
X_scaling = NULL,
scale_features = TRUE
)Arguments
- X
A covariate matrix.
- intermediate_q_feature
Whether to use the intermediate
quantilesas an additional covariate, by appending it to theXmatrix (bool).- intermediate_quantiles
The intermediate conditional quantiles.
- X_scaling
Existing
"X_scaling"object containing the precomputed mean and variance for each covariate. This enables reusing the scaling choice and parameters from the train set, if computing the excesses on a validation or test set, in order to avoid overfitting. This is performed automatically in the"EQRN"objects.- scale_features
Whether to rescale each input covariates to zero mean and unit variance before applying the network (recommended). If
X_scalingis given,X_scaling$scalingoverridesscale_features.