powered by
uses the means and standard deviations of the training set to standardize the test set. See, e.g., https://scikit-learn.org/stable/modules/cross_validation.html .
cvScaler(testSet, means, standardDeviations)
scaled test set
test data set
means of the training set
standard deviations of the training set
library(lessSEM) data <- matrix(rnorm(50),10,5) cvScaler(testSet = data, means = 1:5, standardDeviations = 1:5)
Run the code above in your browser using DataLab