autoscale: Autoscaling

Description Usage Arguments Value Examples

View source: R/autoscale_class.R

Description

Each variable/feature is mean centred and scaled by the standard deviation. The transformed variables have zero-mean and unit-variance.

Usage

1
autoscale(mode = "data", ...)

Arguments

mode

(character) Mode of action. Allowed values are limited to the following:

  • "data": Autoscaling is applied to the data matrix only.

  • "sample_meta": Autoscaling is applied to the sample_meta data only.

  • "both": Autoscaling is applied to both the data matrix and the meta data.

The default is "data".

...

Additional slots and values passed to struct_class.

Value

A autoscale object.

Examples

1
2
3
4
D = iris_DatasetExperiment()
M = autoscale()
M = model_train(M,D)
M = model_predict(M,D)

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.