normalizes a matrix to unit variance, 0 mean centered.
More...
#include <utils.h>
|
| Normalizer (bool sa=true, bool rm_offset=true) |
|
template<typename T > |
void | fit (const MatrixBase< T > &X, const vector< char > &dt) |
| fit the scale and offset of data. More...
|
|
template<typename T > |
void | normalize (MatrixBase< T > &X) const |
| normalize matrix. More...
|
|
template<typename T > |
void | adjust_weights (MatrixBase< T > &B) const |
| return weights of a linear model, y = B*X, given weights of More...
|
|
template<typename T > |
void | adjust_weights (shogun::SGVector< T > &B) const |
|
template<typename T > |
void | adjust_weights (vector< T > &B) const |
|
template<typename T > |
float | adjust_offset (const MatrixBase< T > &Bn, float init_offset) const |
|
template<typename T > |
float | adjust_offset (const vector< T > &Bn, float init_offset) const |
|
template<typename T > |
float | adjust_offset (const shogun::SGVector< T > &Bn, float init_offset) const |
|
template<typename T > |
void | invert (MatrixBase< T > &X) const |
| inverse normalize a matrix. More...
|
|
template<typename T > |
void | fit_normalize (MatrixBase< T > &X, const vector< char > &dtypes) |
| fit then normalize More...
|
|
normalizes a matrix to unit variance, 0 mean centered.
Definition at line 146 of file utils.h.
◆ Normalizer()
FT::Util::Normalizer::Normalizer |
( |
bool |
sa = true , |
|
|
bool |
rm_offset = true |
|
) |
| |
|
inline |
◆ adjust_offset() [1/3]
template<typename T >
float FT::Util::Normalizer::adjust_offset |
( |
const MatrixBase< T > & |
Bn, |
|
|
float |
init_offset |
|
) |
| const |
|
inline |
◆ adjust_offset() [2/3]
template<typename T >
float FT::Util::Normalizer::adjust_offset |
( |
const shogun::SGVector< T > & |
Bn, |
|
|
float |
init_offset |
|
) |
| const |
|
inline |
◆ adjust_offset() [3/3]
template<typename T >
float FT::Util::Normalizer::adjust_offset |
( |
const vector< T > & |
Bn, |
|
|
float |
init_offset |
|
) |
| const |
|
inline |
◆ adjust_weights() [1/3]
template<typename T >
void FT::Util::Normalizer::adjust_weights |
( |
MatrixBase< T > & |
B | ) |
const |
|
inline |
return weights of a linear model, y = B*X, given weights of
Definition at line 215 of file utils.h.
◆ adjust_weights() [2/3]
template<typename T >
void FT::Util::Normalizer::adjust_weights |
( |
shogun::SGVector< T > & |
B | ) |
const |
|
inline |
◆ adjust_weights() [3/3]
template<typename T >
void FT::Util::Normalizer::adjust_weights |
( |
vector< T > & |
B | ) |
const |
|
inline |
◆ fit()
template<typename T >
void FT::Util::Normalizer::fit |
( |
const MatrixBase< T > & |
X, |
|
|
const vector< char > & |
dt |
|
) |
| |
|
inline |
fit the scale and offset of data.
Definition at line 161 of file utils.h.
◆ fit_normalize()
template<typename T >
void FT::Util::Normalizer::fit_normalize |
( |
MatrixBase< T > & |
X, |
|
|
const vector< char > & |
dtypes |
|
) |
| |
|
inline |
fit then normalize
Definition at line 315 of file utils.h.
◆ invert()
template<typename T >
void FT::Util::Normalizer::invert |
( |
MatrixBase< T > & |
X | ) |
const |
|
inline |
inverse normalize a matrix.
Definition at line 289 of file utils.h.
◆ normalize()
template<typename T >
void FT::Util::Normalizer::normalize |
( |
MatrixBase< T > & |
X | ) |
const |
|
inline |
normalize matrix.
Definition at line 191 of file utils.h.
◆ dtypes
vector<char> FT::Util::Normalizer::dtypes |
◆ offset
vector<float> FT::Util::Normalizer::offset |
◆ remove_offset
bool FT::Util::Normalizer::remove_offset |
◆ scale
vector<float> FT::Util::Normalizer::scale |
◆ scale_all
bool FT::Util::Normalizer::scale_all |
The documentation for this struct was generated from the following file: