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
Learner.h
Go to the documentation of this file.
1
#ifndef OPENANN_LEARNER_H_
2
#define OPENANN_LEARNER_H_
3
4
#include <
OpenANN/io/DataSet.h
>
5
#include <
OpenANN/optimization/Optimizable.h
>
6
7
namespace
OpenANN
8
{
9
18
class
Learner
:
public
Optimizable
19
{
20
protected
:
21
DataSet
*
trainSet
;
22
DataSet
*
validSet
;
23
bool
deleteTrainSet
,
deleteValidSet
;
24
int
N
;
25
public
:
26
Learner
();
27
virtual
~Learner
();
33
virtual
Eigen::VectorXd
operator()
(
const
Eigen::VectorXd& x) = 0;
39
virtual
Eigen::MatrixXd
operator()
(
const
Eigen::MatrixXd&
X
) = 0;
46
virtual
Learner
&
trainingSet
(Eigen::MatrixXd& input,
47
Eigen::MatrixXd& output);
53
virtual
Learner
&
trainingSet
(
DataSet
&
trainingSet
);
58
virtual
Learner
&
removeTrainingSet
();
65
virtual
Learner
&
validationSet
(Eigen::MatrixXd& input,
66
Eigen::MatrixXd& output);
72
virtual
Learner
&
validationSet
(
DataSet
&
validationSet
);
77
virtual
Learner
&
removeValidationSet
();
78
};
79
80
}
// namespace OpenANN
81
82
#endif // OPENANN_LEARNER_H_
Generated on Wed Jul 9 2014 08:57:52 for OpenANN by
1.8.4