[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
![]() |
SplitBase | ![]() |
#include <vigra/random_forest/rf_split.hxx>
Inherited by ThresholdSplit.
Public Member Functions | |
template<class T, class C, class T2, class C2, class Region, class Random> | |
int | findBestSplit (MultiArrayView< 2, T, C > features, MultiArrayView< 2, T2, C2 > labels, Region region, ArrayVector< Region > childs, Random randint) |
template<class T, class C, class T2, class C2, class Region, class Random> | |
int | makeTerminalNode (MultiArrayView< 2, T, C > features, MultiArrayView< 2, T2, C2 > labels, Region ®ion, Random randint) |
void | reset () |
template<class T> | |
void | set_external_parameters (ProblemSpec< T > const &in) |
template<class T, class C, class T2, class C2, class Region, class Random> | ||||
int findBestSplit | ( | MultiArrayView< 2, T, C > | features, | |
MultiArrayView< 2, T2, C2 > | labels, | |||
Region | region, | |||
ArrayVector< Region > | childs, | |||
Random | randint | |||
) |
findBestSplit has to be implemented in derived split functor. these functions only insures That a CompileTime error is issued if no such method was defined.
template<class T, class C, class T2, class C2, class Region, class Random> | ||||
int makeTerminalNode | ( | MultiArrayView< 2, T, C > | features, | |
MultiArrayView< 2, T2, C2 > | labels, | |||
Region & | region, | |||
Random | randint | |||
) |
default action for creating a terminal Node. sets the Class probability of the remaining region according to the class histogram
void reset | ( | ) |
resets internal data. Should always be called before calling findBestSplit or makeTerminalNode
template<class T> | |||||
void set_external_parameters | ( | ProblemSpec< T > const & | in | ) |
returns the DecisionTree Node created by findBestSplit or makeTerminalNode.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|