1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef REGPRERANDOMFORESTSINCLUDE
- #define REGPRERANDOMFORESTSINCLUDE
- #include "core/vector/VectorT.h"
- #include "core/vector/MatrixT.h"
- #include <map>
- #include "vislearning/regression/regressionbase/RegressionAlgorithm.h"
- #include "vislearning/regression/randomforest/RegRandomForests.h"
- namespace OBJREC{
- class RegPreRandomForests : public RegressionAlgorithm
- {
- protected:
-
- RegressionAlgorithm *leafRegressionPrototype;
-
-
- std::map<RegressionNode *, RegressionAlgorithm *> leafRegressions;
-
-
- RegRandomForests *randomforest;
-
-
- int mEx;
-
- public:
-
- RegPreRandomForests( const NICE::Config *conf,
- const std::string & section,
- RegressionAlgorithm * _leafRegressionPrototype );
-
-
- virtual ~ RegPreRandomForests();
-
-
- void teach ( const NICE::VVector & X, const NICE::Vector & y );
-
-
- double predict ( const NICE::Vector & x );
-
- void clear();
- void store ( std::ostream & os, int format = 0 ) const;
- void restore ( std::istream & is, int format = 0 );
- };
- }
- #endif
|