| fitted_config | R Documentation |
Preprocessor's config with its learned values filled in@config holds what the user asked for and @values what preprocessing
learned, which keeps the input intact – but re-applying to new data needs
the two merged, and so does a run record, which must report the values
actually used. One merge, so the two cannot disagree.
fitted_config(preprocessor)
preprocessor |
|
The merged fields are settable inputs: supplying scale_centers makes
preprocess() use it instead of computing one. That is why the merge is
@values over @config and not the reverse – a learned value only fills a
slot the user left empty.
PreprocessorConfig with the learned values applied.
EDG
apply_preprocessor, setup_Preprocessor
iris_pre <- preprocess(iris, setup_Preprocessor(scale = TRUE, center = TRUE))
# The config as supplied carries no centers; the fitted one carries the
# centers `preprocess()` computed.
fitted_config(iris_pre)@scale_centers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.