Documentation
¶
Overview ¶
Package scaling contains implementation of feature scaling. It supports two types of feature scaling: normalization and standarization.
Index ¶
Constants ¶
View Source
const ( Normalization = iota + 1 Standarization )
Variables ¶
View Source
var ( // ErrUnsupportedTechnique is returned if an unsupported feature scaling technique was chosen. ErrUnsupportedTechnique = errors.New("unsupported scaling technique") // ErrInvalidParameters is returned if scaling parameters vectors have different length. ErrInvalidParameters = errors.New("invalid scaling parameters") )
Functions ¶
Types ¶
type Parameters ¶
type Parameters struct {
U []float64 // mean value of all features from a design matrix
S []float64 // range or standard deviation of all features from a design matrix
}
Parameters group together two parameters used in scaling.
type Result ¶
type Result struct {
X [][]float64
Parameters Parameters
}
Result holds the scaled features set along with the scaling parameters.
Click to show internal directories.
Click to hide internal directories.