|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
A half-space constraint derived from an ancestor split. More...
#include <Visualization.hpp>
Public Attributes | |
| bool | is_lower |
| true = lower child side (projected value < threshold). | |
| types::FeatureVector | projector |
| types::Feature | threshold |
A half-space constraint derived from an ancestor split.
Represents the constraint projector^T x < threshold (if is_lower) or projector^T x >= threshold (if !is_lower). Stored in the full p-dimensional space; projected to 2D when needed by the visitors.
As BoundaryVisitor and RegionVisitor traverse the tree, they accumulate a stack of HalfSpace constraints — one per ancestor split on the path from root to the current node. These constraints define the convex region in which the current node's boundary is active (BoundaryVisitor) or the leaf's decision region (RegionVisitor).
| bool ppforest2::viz::HalfSpace::is_lower |
true = lower child side (projected value < threshold).
| types::FeatureVector ppforest2::viz::HalfSpace::projector |
| types::Feature ppforest2::viz::HalfSpace::threshold |