StochTree 0.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StochTree::FeatureCutpointGrid Class Reference

Computing and tracking cutpoints available for a given feature at a given node Store cutpoint bins in 0-indexed fashion, so that if a given node has. More...

#include <cutpoint_candidates.h>

Public Member Functions

void CalculateStrides (Eigen::MatrixXd &covariates, Eigen::VectorXd &residuals, SortedNodeSampleTracker *feature_node_sort_tracker, int32_t node_id, data_size_t node_begin, data_size_t node_end, int32_t feature_index, std::vector< FeatureType > &feature_types)
 Calculate strides.
 
void CalculateStridesNumeric (Eigen::MatrixXd &covariates, Eigen::VectorXd &residuals, SortedNodeSampleTracker *feature_node_sort_tracker, int32_t node_id, data_size_t node_begin, data_size_t node_end, int32_t feature_index)
 Split numeric / ordered categorical feature and update sort indices.
 
void CalculateStridesOrderedCategorical (Eigen::MatrixXd &covariates, Eigen::VectorXd &residuals, SortedNodeSampleTracker *feature_node_sort_tracker, int32_t node_id, data_size_t node_begin, data_size_t node_end, int32_t feature_index)
 Split numeric / ordered categorical feature and update sort indices.
 
void CalculateStridesUnorderedCategorical (Eigen::MatrixXd &covariates, Eigen::VectorXd &residuals, SortedNodeSampleTracker *feature_node_sort_tracker, int32_t node_id, data_size_t node_begin, data_size_t node_end, int32_t feature_index)
 Split unordered categorical feature and update sort indices.
 
int32_t NumCutpoints ()
 Number of potential cutpoints enumerated.
 
int32_t BinStartIndex (int i)
 Beginning index of bin i.
 
int32_t BinLength (int i)
 Size of bin i.
 
int32_t BinEndIndex (int i)
 Beginning index of bin i.
 
double CutpointValue (int i)
 Value of the upper-bound (cutpoint) implied by bin i.
 
std::vector< std::uint32_t > CutpointVector (int i)
 Vector of cutpoint values up to and including bin i Helper function for converting categorical split "value" (as outlined in Fisher 1958) to a set of categories.
 

Detailed Description

Computing and tracking cutpoints available for a given feature at a given node Store cutpoint bins in 0-indexed fashion, so that if a given node has.


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