scale_train_test | R Documentation |
Scaling of a train and test data set
scale_train_test(
trainset,
testset,
columns = NULL,
type = c("minmax", "zscore", "log", "center")
)
trainset |
A train data set. |
testset |
A test data set. |
columns |
The names or indices of the columns to be scaled. If |
type |
Type of scaling with supported techniques min-max scaling ( |
A named list dependent on the type
.
minmax
: The first element stores the min value, the second element the max value, the third element the scaled train data set and the fourth element the scaled test data set.
zscore
: The first element stores the mean value, the second element the sd value, the third element the scaled train data set and the fourth element the scaled test data set.
log
: The first element stores the scaled train data set and the second element the scaled test data set.
center
: The first element stores the constant value, the second element the scaled train data set and the third element the scaled test data set.
scaling
Other Scaling:
scale_center()
,
scale_dataset()
,
scale_log()
,
scale_minmax()
,
scale_zscore()
,
scaling()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.