scale_train_test: Scaling of a train and test data set

View source: R/deepScaling.r

scale_train_testR Documentation

Scaling of a train and test data set

Description

Scaling of a train and test data set

Usage

scale_train_test(
  trainset,
  testset,
  columns = NULL,
  type = c("minmax", "zscore", "log", "center")
)

Arguments

trainset

A train data set.

testset

A test data set.

columns

The names or indices of the columns to be scaled. If NULL (default), all columns are used.

type

Type of scaling with supported techniques min-max scaling (minmax), z-score scaling (zscore), log transformation (log) and centering center.

Value

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.

See Also

scaling

Other Scaling: scale_center(), scale_dataset(), scale_log(), scale_minmax(), scale_zscore(), scaling()


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.