OpenANN
1.1.0
An open source library for artificial neural networks.
Main Page
Classes
Files
List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
OpenANN
io
DataStream.h
Go to the documentation of this file.
1
#ifndef OPENANN_IO_DATA_STREAM_H_
2
#define OPENANN_IO_DATA_STREAM_H_
3
4
#include <Eigen/Core>
5
6
namespace
OpenANN
7
{
8
9
class
DirectStorageDataSet;
10
class
Optimizer;
11
class
Learner;
12
25
class
DataStream
26
{
27
int
cacheSize, collected;
28
Eigen::MatrixXd X, T;
29
DirectStorageDataSet
* cache;
30
Optimizer
* opt;
31
Learner
* learner;
32
public
:
37
DataStream
(
int
cacheSize);
38
~DataStream
();
44
DataStream
&
setLearner
(
Learner
& learner);
50
DataStream
&
setOptimizer
(
Optimizer
& opt);
57
void
addSample
(Eigen::VectorXd* x, Eigen::VectorXd* t = 0);
58
private
:
59
void
initialize(
int
inputs,
int
outputs);
60
};
61
62
}
// namespace OpenANN
63
64
#endif // OPENANN_IO_DATA_STREAM_H_
Generated on Wed Jul 9 2014 08:57:52 for OpenANN by
1.8.4