![]() |
OpenANN
1.1.0
An open source library for artificial neural networks.
|
Compresses arbitrary one-dimensional data. More...
#include <Compressor.h>
Inheritance diagram for OpenANN::Compressor:Public Member Functions | |
| Compressor (int inputDim, int outputDim, CompressionMatrixFactory::Transformation transformation) | |
| virtual Transformer & | fit (const Eigen::MatrixXd &X) |
| Fit transformation according to training set X. More... | |
| virtual Transformer & | fitPartial (const Eigen::MatrixXd &X) |
| Fit transformation according to subset of the training set X. More... | |
| virtual Eigen::MatrixXd | transform (const Eigen::MatrixXd &X) |
| Transform the data. More... | |
| int | getOutputs () |
Public Member Functions inherited from OpenANN::Transformer | |
| virtual | ~Transformer () |
Compresses arbitrary one-dimensional data.
The compression must have the form
, where
can be an arbitrary compression matrix,
is the D-dimensional input and
is the F-dimensional output (i.e. F < D).
| OpenANN::Compressor::Compressor | ( | int | inputDim, |
| int | outputDim, | ||
| CompressionMatrixFactory::Transformation | transformation | ||
| ) |
|
virtual |
Fit transformation according to training set X.
| X | each row represents an instance |
Implements OpenANN::Transformer.
|
virtual |
Fit transformation according to subset of the training set X.
This can be used for online adaption of the transformation.
| X | each row represents an instance |
Reimplemented from OpenANN::Transformer.
| int OpenANN::Compressor::getOutputs | ( | ) |
|
virtual |
Transform the data.
| X | each row represents an instance |
Implements OpenANN::Transformer.
1.8.4