Brush C++ API
A flexible interpretable machine learning framework
|
normalizes a matrix to unit variance, 0 mean centered. More...
#include <utils.h>
Public Member Functions | |
Normalizer (bool sa=true) | |
void | fit (MatrixXf &X, const vector< char > &dt) |
fit the scale and offset of data. | |
void | normalize (MatrixXf &X) |
normalize matrix. | |
void | fit_normalize (MatrixXf &X, const vector< char > &dtypes) |
Public Attributes | |
vector< float > | scale |
vector< float > | offset |
vector< char > | dtypes |
bool | scale_all |
void Brush::Util::Normalizer::normalize | ( | MatrixXf & | X | ) |