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

Per-node data collected by routing observations through the tree. More...

#include <Visualization.hpp>

Public Attributes

int depth
 
std::vector< types::Responsegroups
 
bool is_leaf
 
std::vector< types::Featureprojected_values
 
types::FeatureVector projector
 
types::Feature threshold
 
types::Response value
 

Detailed Description

Per-node data collected by routing observations through the tree.

For internal (condition) nodes:

  • projected_values: dot product of each reaching observation with the node's projector vector.
  • groups: group label (1-indexed response) of each reaching observation, parallel to projected_values.
  • projector, threshold: the split parameters (copied for convenience so the R side can render histograms without re-accessing the tree).

For leaf (response) nodes:

  • projected_values is empty.
  • groups contains labels of observations reaching the leaf.
  • value is the predicted group (0-indexed response).

Member Data Documentation

◆ depth

int ppforest2::viz::NodeData::depth

◆ groups

std::vector<types::Response> ppforest2::viz::NodeData::groups

◆ is_leaf

bool ppforest2::viz::NodeData::is_leaf

◆ projected_values

std::vector<types::Feature> ppforest2::viz::NodeData::projected_values

◆ projector

types::FeatureVector ppforest2::viz::NodeData::projector

◆ threshold

types::Feature ppforest2::viz::NodeData::threshold

◆ value

types::Response ppforest2::viz::NodeData::value

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