[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

OnlineLearnVisitor Class Reference

#include <vigra/random_forest/rf_visitors.hxx>

Inheritance diagram for OnlineLearnVisitor:
VisitorBase

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 &)
 

Detailed Description

Visitor to gain information, later needed for online learning.

Member Function Documentation

◆ visit_at_beginning()

template<class RF , class PR >
void visit_at_beginning ( RF & rf,
const PR &  )

Initialize, set the number of trees

◆ reset_tree()

void reset_tree ( int tree_id)

Reset a tree

◆ visit_after_tree()

template<class RF , class PR , class SM , class ST >
void visit_after_tree ( RF & ,
PR & ,
SM & ,
ST & ,
int  )

simply increase the tree count

◆ visit_internal_node()

template<class TR , class IntT , class TopT , class Feat >
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


The documentation for this class was generated from the following file:

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de)
Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany

html generated using doxygen and Python
vigra 1.12.2