PreprocessorConfig
ComponentLanguage-independent config for rtemis preprocessing. Mirrors the `PreprocessorConfig` object / `setup_Preprocessor` arguments. The same config drives rtemis (R), rtemis-py, and rtemislive to identical output.
Properties
complete_casesbooleanRetain only complete cases.
remove_features_thresnumber | null≤ 1> 0Remove features missing in >= this fraction of cases.
remove_cases_thresnumber | null≤ 1> 0Remove cases missing >= this fraction of features.
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.
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_duplicatesbooleanRemove duplicate cases.
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.
excludearray | null≥ 1 itemsColumn indices to exclude from preprocessing.
Relationships
Used by