![]() |
OpenANN
1.1.0
An open source library for artificial neural networks.
|
Principal component analysis. More...
#include <PCA.h>
Inheritance diagram for OpenANN::PCA:Public Member Functions | |
| PCA (int components, bool whiten=true) | |
| Create PCA. More... | |
| 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 | explainedVarianceRatio () |
| Get the ratio of explained variance for each transformed feature. 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... | |
Principal component analysis.
| OpenANN::PCA::PCA | ( | int | components, |
| bool | whiten = true |
||
| ) |
Create PCA.
| components | number of dimensions after transformation |
| whiten | outputs should have variance 1 |
| Eigen::VectorXd OpenANN::PCA::explainedVarianceRatio | ( | ) |
Get the ratio of explained variance for each transformed feature.
|
virtual |
Fit transformation according to training set X.
| X | each row represents an instance |
Implements OpenANN::Transformer.
|
virtual |
Transform the data.
| X | each row represents an instance |
Implements OpenANN::Transformer.
1.8.4