SupervisedPreprocessorConfig
ComponentLanguage-independent config for the preprocessing a supervised run can fit: the preprocessing config without the operations a fitted preprocessor cannot replay at predict time (`complete_cases`, `remove_duplicates`, `remove_cases_thres`) or would learn differently in every resample (`remove_features_thres`). Those belong to `preprocessor`, applied to a dataset before training.
Properties
missingnessbooleanAdd a boolean missingness indicator per feature with NAs.
imputebooleanImpute missing values.
impute_typestringImputation method.
one of
"missRanger""micePMM""meanMode"impute_missRanger_paramsobjectParameters passed to missRanger (e.g. pmm.k, maxiter, num.trees).
impute_discretestringFunction name to impute discrete features.
impute_continuousstringFunction name to impute continuous features.
integer2factorbooleanConvert integers to factors.
integer2numericbooleanConvert integers to numeric.
logical2factorbooleanConvert logicals to factors.
logical2numericbooleanConvert logicals to numeric.
numeric2factorbooleanConvert numeric to factors.
numeric2factor_levelsarray | null≥ 1 itemsFactor levels for numeric2factor.
numeric_cut_ninteger≥ 0Cut numeric features into this many bins (0 = off).
numeric_cut_labelsbooleanUse labels for numeric_cut bins.
numeric_quant_ninteger≥ 0Cut numeric features into this many quantile bins (0 = off).
numeric_quant_NAonlybooleanQuantile-cut only features with NAs.
unique_len2factorinteger≥ 0Convert features with <= this many unique values to factors (0 = off).
character2factorbooleanConvert character features to factors.
factorNA2missingbooleanConvert factor NAs to a 'missing' level.
factorNA2missing_levelstringLevel name for factorNA2missing.
factor2integerbooleanConvert factors to integers.
factor2integer_startat0booleanfactor2integer starts at 0.
factor2integer_levelsobject | nullPer-feature factor2integer levels, keyed by feature name.
scalebooleanScale features.
centerbooleanCenter features.
scale_centersobject | nullPer-feature centering values, keyed by feature name.
scale_coefficientsobject | nullPer-feature scaling values, keyed by feature name.
remove_constantsbooleanRemove constant features.
remove_constants_skip_missingbooleanIgnore missing values when detecting constants.
remove_featuresarray | null≥ 1 itemsNames of features to remove.
one_hotbooleanOne-hot encode factors.
one_hot_levelsobject | nullPer-feature one-hot levels, keyed by feature name.
add_date_featuresbooleanAdd date-derived features.
date_featuresstring[]≥ 1 itemsDate features to add.
add_holidaysbooleanAdd a holiday indicator feature.
holidaysstring[]≥ 1 itemsunique itemsHolidays to flag, named as timeDate holiday functions.
excludearray | null≥ 1 itemsColumn indices to exclude from preprocessing.
Relationships
Used by