ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::viz::HalfSpace Struct Reference

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
 

Detailed Description

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

See also
BoundaryVisitor, RegionVisitor

Member Data Documentation

◆ is_lower

bool ppforest2::viz::HalfSpace::is_lower

true = lower child side (projected value < threshold).

◆ projector

types::FeatureVector ppforest2::viz::HalfSpace::projector

◆ threshold

types::Feature ppforest2::viz::HalfSpace::threshold

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