#include <DecisionTree-inl.h>
Public Types | |
using | F = std::function< void(const typename DecisionTree< L, Y >::Leaf &)> |
Public Member Functions | |
void | operator() (const typename DecisionTree< L, Y >::NodePtr &node) const |
Do a depth-first visit on the tree rooted at node. More... | |
Public Attributes | |
F | f |
folding function object. More... | |
Functor performing depth-first visit to each leaf with the Leaf object passed as an argument.
NOTE: We differentiate between leaves and assignments. Concretely, a 3 binary variable tree will have 2^3=8 assignments, but based on pruning, it can have <8 leaves. For example, if a tree has all assignment values as 1, then pruning will cause the tree to have only 1 leaf yet 8 assignments.
Definition at line 858 of file DecisionTree-inl.h.
using gtsam::VisitLeaf< L, Y >::F = std::function<void(const typename DecisionTree<L, Y>::Leaf&)> |
Definition at line 859 of file DecisionTree-inl.h.
|
inline |
Do a depth-first visit on the tree rooted at node.
Definition at line 864 of file DecisionTree-inl.h.
F gtsam::VisitLeaf< L, Y >::f |
folding function object.
Definition at line 861 of file DecisionTree-inl.h.