Hi,
When a recipe, for example, including:
step__center()
, step_scale()
and step_pca()
.
is trained on a training set and then applied on a test data set, is the predictors in the test set centered and scaled using the mean and standard deviation from the training set or is it all carried out with information only from the test set?
And if it is not using the parameters from the training data set, how can I make it use it?
Thanks in advance,
John
For discussions related to modeling, machine learning and deep learning. Related packages include caret
, modelr
, yardstick
, rsample
, parsnip
, tensorflow
, keras
, cloudml
, and tfestimators
.