Description Usage Arguments Details Value See Also Examples
A function to do feature scaling to dataset with variance/standardization scaling method .
1 | varianceScaling(dataSet)
|
dataSet |
a data.frame that representing dataset to be processed. dataSet must have at leas two columns and ten rows of data that contain only numbers (integer or float). The last column to the left will be defined as output variable. |
This function changes the value of dataset that represented by data.frame object into variance scaled value that has interval value near -1 to 1.
a list contains feature scaled dataset and scaling parameter
1 2 3 4 5 6 7 8 9 10 11 | ##################################
## Feature scaling with Variance Scaling Method
## load R Package data
data(gradDescentRData)
## get z-factor Data
dataSet <- gradDescentRData$CompressilbilityFactor
## do variance scaling to dataset
featureScalingResult <- varianceScaling(dataSet)
## show result
print(featureScalingResult$scaledDataSet)
print(featureScalingResult$scalingParameter)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.