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
Bagging.h
Go to the documentation of this file.
1
#ifndef OPENANN_BAGGING_H_
2
#define OPENANN_BAGGING_H_
3
4
#include <
OpenANN/EnsembleLearner.h
>
5
#include <list>
6
7
namespace
OpenANN
8
{
9
21
class
Bagging
:
public
EnsembleLearner
22
{
23
std::list<Learner*> models;
24
Optimizer
* optimizer;
25
double
bagSize;
26
int
F;
27
public
:
28
Bagging
(
double
bagSize);
29
virtual
EnsembleLearner
&
addLearner
(
Learner
& learner);
30
virtual
EnsembleLearner
&
setOptimizer
(
Optimizer
& optimizer);
31
virtual
EnsembleLearner
&
train
(
DataSet
& dataSet);
32
virtual
Eigen::MatrixXd
operator()
(Eigen::MatrixXd&
X
);
33
virtual
Eigen::VectorXd
operator()
(Eigen::VectorXd& x);
34
};
35
36
}
// namespace OpenANN
37
38
#endif // OPENANN_BAGGING_H_
Generated on Wed Jul 9 2014 08:57:52 for OpenANN by
1.8.4