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