src/WeakLearners/BaseLearner.h File Reference

The abstract basic (weak) learner. More...

#include <algorithm>
#include <vector>
#include "IO/InputData.h"
#include "Utils/Args.h"
#include "Utils/StreamTokenizer.h"

Go to the source code of this file.

Namespaces

namespace  MultiBoost

Classes

class  BaseLearner
 Generic base learner. More...
class  BaseLearner::LearnersRegs
 Holds the information about the registered learners. More...

Defines

#define REGISTER_LEARNER(X)
 The macro that MUST be declared by all the Derived classes that can be used for classification.
#define REGISTER_LEARNER_NAME(NAME, X)
 Similarly to REGISTER_LEARNER this macro register the derived class, but in this case a name can be specified, that will differ from the class name.


Detailed Description

The abstract basic (weak) learner.

Definition in file BaseLearner.h.


Define Documentation

#define REGISTER_LEARNER_NAME NAME,
 ) 
 

Value:

struct Register_##X \
        { Register_##X() { BaseLearner::RegisteredLearners().addLearner(#NAME, new X()); } }; \
        static Register_##X r_##X;
Similarly to REGISTER_LEARNER this macro register the derived class, but in this case a name can be specified, that will differ from the class name.

Warning:
This still needs to be tested! :)

Definition at line 373 of file BaseLearner.h.


Generated on Mon Nov 28 21:43:47 2005 for MultiBoost by  doxygen 1.4.5