OpenANN
1.1.0
An open source library for artificial neural networks.
|
Normalize data so that for each feature the mean is 0 and the standard deviation is 1. More...
#include <Normalization.h>
Public Member Functions | |
Normalization () | |
virtual Transformer & | fit (const Eigen::MatrixXd &X) |
Fit transformation according to training set X. More... | |
virtual Eigen::MatrixXd | transform (const Eigen::MatrixXd &X) |
Transform the data. More... | |
Eigen::VectorXd | getMean () |
Get the mean of the original data. More... | |
Eigen::VectorXd | getStd () |
Get the standard deviations of the original data. More... | |
Public Member Functions inherited from OpenANN::Transformer | |
virtual | ~Transformer () |
virtual Transformer & | fitPartial (const Eigen::MatrixXd &X) |
Fit transformation according to subset of the training set X. More... | |
Normalize data so that for each feature the mean is 0 and the standard deviation is 1.
OpenANN::Normalization::Normalization | ( | ) |
|
virtual |
Fit transformation according to training set X.
X | each row represents an instance |
Implements OpenANN::Transformer.
Eigen::VectorXd OpenANN::Normalization::getMean | ( | ) |
Get the mean of the original data.
Eigen::VectorXd OpenANN::Normalization::getStd | ( | ) |
Get the standard deviations of the original data.
|
virtual |
Transform the data.
X | each row represents an instance |
Implements OpenANN::Transformer.