[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
OnlineLearnVisitor Class Reference |
#include <vigra/random_forest/rf_visitors.hxx>
Public Member Functions | |
void | reset_tree (int tree_id) |
template<class RF , class PR , class SM , class ST > | |
void | visit_after_tree (RF &, PR &, SM &, ST &, int) |
template<class RF , class PR > | |
void | visit_at_beginning (RF &rf, const PR &) |
template<class TR , class IntT , class TopT , class Feat > | |
void | visit_internal_node (TR &tr, IntT index, TopT node_t, Feat &features) |
Public Member Functions inherited from VisitorBase | |
double | return_val () |
template<class Tree , class Split , class Region , class Feature_t , class Label_t > | |
void | visit_after_split (Tree &tree, Split &split, Region &parent, Region &leftChild, Region &rightChild, Feature_t &features, Label_t &labels) |
template<class RF , class PR , class SM , class ST > | |
void | visit_after_tree (RF &rf, PR &pr, SM &sm, ST &st, int index) |
template<class RF , class PR > | |
void | visit_at_beginning (RF const &rf, PR const &pr) |
template<class RF , class PR > | |
void | visit_at_end (RF const &rf, PR const &pr) |
template<class TR , class IntT , class TopT , class Feat > | |
void | visit_external_node (TR &tr, IntT index, TopT node_t, Feat &features) |
template<class TR , class IntT , class TopT , class Feat > | |
void | visit_internal_node (TR &, IntT, TopT, Feat &) |
Visitor to gain information, later needed for online learning.
void visit_at_beginning | ( | RF & | rf, |
const PR & | |||
) |
Initialize, set the number of trees
void reset_tree | ( | int | tree_id | ) |
Reset a tree
void visit_after_tree | ( | RF & | , |
PR & | , | ||
SM & | , | ||
ST & | , | ||
int | |||
) |
simply increase the tree count
void visit_internal_node | ( | TR & | tr, |
IntT | index, | ||
TopT | node_t, | ||
Feat & | features | ||
) |
do something when visiting a internal node during getToLeaf
remember as last node id, for finding the parent of the last external node also: adjust class counts and borders
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|