A simple MaxAbs Scaler class. More...
Public Member Functions | |
template < typename MatType > | |
void | Fit (const MatType &input) |
Function to fit features, to find out the min max and scale. More... | |
template < typename MatType > | |
void | InverseTransform (const MatType &input, MatType &output) |
Function to retrieve original dataset. More... | |
const arma::vec & | ItemMax () const |
Get the Max row vector. More... | |
const arma::vec & | ItemMin () const |
Get the Min row vector. More... | |
const arma::vec & | Scale () const |
Get the Scale row vector. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
template < typename MatType > | |
void | Transform (const MatType &input, MatType &output) |
Function to scale features. More... | |
A simple MaxAbs Scaler class.
Given an input dataset this class helps you to scale each feature by its maximum absolute value.
[z = x / max(abs(x))]
where max(abs(x)) is maximum absolute value of feature.
Definition at line 46 of file max_abs_scaler.hpp.
|
inline |
Function to fit features, to find out the min max and scale.
input | Dataset to fit. |
Definition at line 55 of file max_abs_scaler.hpp.
|
inline |
Function to retrieve original dataset.
input | Scaled dataset. |
output | Output matrix with original Dataset. |
Definition at line 90 of file max_abs_scaler.hpp.
|
inline |
Get the Max row vector.
Definition at line 99 of file max_abs_scaler.hpp.
|
inline |
Get the Min row vector.
Definition at line 97 of file max_abs_scaler.hpp.
|
inline |
Get the Scale row vector.
Definition at line 101 of file max_abs_scaler.hpp.
|
inline |
Definition at line 104 of file max_abs_scaler.hpp.
|
inline |
Function to scale features.
input | Dataset to scale features. |
output | Output matrix with scaled features. |
Definition at line 72 of file max_abs_scaler.hpp.