|  | OpenANN
    1.1.0
    An open source library for artificial neural networks. | 
Stores the inputs and outputs of the data set directly in two matrices. More...
#include <DirectStorageDataSet.h>
 Inheritance diagram for OpenANN::DirectStorageDataSet:
 Inheritance diagram for OpenANN::DirectStorageDataSet:| Public Member Functions | |
| DirectStorageDataSet (Eigen::MatrixXd *in, Eigen::MatrixXd *out=0, Evaluator *evaluator=0) | |
| Create an instance of DirectStorageDataSet.  More... | |
| virtual int | samples () | 
| Number of instances.  More... | |
| virtual int | inputs () | 
| Input dimensions of instances.  More... | |
| virtual int | outputs () | 
| Output dimensions of instances.  More... | |
| virtual Eigen::VectorXd & | getInstance (int i) | 
| Get the input of the ith instance.  More... | |
| virtual Eigen::VectorXd & | getTarget (int i) | 
| Get the output of the ith instance.  More... | |
| virtual void | finishIteration (Learner &learner) | 
| This function is called after an iteration of the optimization algorithm.  More... | |
|  Public Member Functions inherited from OpenANN::DataSet | |
| virtual | ~DataSet () | 
| Protected Attributes | |
| Eigen::MatrixXd * | in | 
| Eigen::MatrixXd * | out | 
| const int | N | 
| const int | D | 
| const int | F | 
| Eigen::VectorXd | temporaryInput | 
| Eigen::VectorXd | temporaryOutput | 
| Evaluator * | evaluator | 
| Do not delete the evaluator!  More... | |
Stores the inputs and outputs of the data set directly in two matrices.
The data set can log results during optimization.
| OpenANN::DirectStorageDataSet::DirectStorageDataSet | ( | Eigen::MatrixXd * | in, | 
| Eigen::MatrixXd * | out = 0, | ||
| Evaluator * | evaluator = 0 | ||
| ) | 
Create an instance of DirectStorageDataSet.
| in | contains an instance in each row | 
| out | cointains a target in each row | 
| evaluator | monitors optimization progress | 
| 
 | virtual | 
This function is called after an iteration of the optimization algorithm.
It could log results, modify or extend the data set or whatever.
| learner | learned model | 
Implements OpenANN::DataSet.
| 
 | virtual | 
Get the input of the ith instance.
| n | number of instance | 
Implements OpenANN::DataSet.
| 
 | virtual | 
Get the output of the ith instance.
| n | number of instance | 
Implements OpenANN::DataSet.
| 
 | inlinevirtual | 
| 
 | inlinevirtual | 
| 
 | inlinevirtual | 
Number of instances.
Assumes that the data set has a fixed size, at least for one iteration of the optimization algorithm.
Implements OpenANN::DataSet.
| 
 | protected | 
| 
 | protected | 
Do not delete the evaluator!
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
 1.8.4
 1.8.4