Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Util::Normalizer Struct Reference

normalizes a matrix to unit variance, 0 mean centered. More...

#include <utils.h>

Collaboration diagram for Brush::Util::Normalizer:

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< floatscale
 
vector< floatoffset
 
vector< chardtypes
 
bool scale_all
 

Detailed Description

normalizes a matrix to unit variance, 0 mean centered.

Definition at line 312 of file utils.h.

Constructor & Destructor Documentation

◆ Normalizer()

Brush::Util::Normalizer::Normalizer ( bool sa = true)
inline

Definition at line 314 of file utils.h.

Member Function Documentation

◆ fit()

void Brush::Util::Normalizer::fit ( MatrixXf & X,
const vector< char > & dt )

fit the scale and offset of data.

Definition at line 100 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fit_normalize()

void Brush::Util::Normalizer::fit_normalize ( MatrixXf & X,
const vector< char > & dtypes )

Definition at line 137 of file utils.cpp.

Here is the call graph for this function:

◆ normalize()

void Brush::Util::Normalizer::normalize ( MatrixXf & X)

normalize matrix.

Definition at line 117 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dtypes

vector<char> Brush::Util::Normalizer::dtypes

Definition at line 317 of file utils.h.

◆ offset

vector<float> Brush::Util::Normalizer::offset

Definition at line 316 of file utils.h.

◆ scale

vector<float> Brush::Util::Normalizer::scale

Definition at line 315 of file utils.h.

◆ scale_all

bool Brush::Util::Normalizer::scale_all

Definition at line 318 of file utils.h.


The documentation for this struct was generated from the following files: