Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::util Namespace Reference

Functions

template<typename T , typename Scalar , typename W >
requires (!is_one_of_v<Scalar,bool,bJet>)
Scalar get_weight (const TreeNode &tn, const W **weights=nullptr)
 get weight
 
template<typename T , typename Scalar , typename W >
requires (is_one_of_v<Scalar,bool,bJet>)
Scalar get_weight (const TreeNode &tn, const W **weights=nullptr)
 

Function Documentation

◆ get_weight() [1/2]

template<typename T , typename Scalar , typename W >
requires (!is_one_of_v<Scalar,bool,bJet>)
Scalar Brush::util::get_weight ( const TreeNode & tn,
const W ** weights = nullptr )

get weight

Template Parameters
Treturn type
Scalarscalar type of return type
Parameters
tntree node
weightsoption pointer to a weight array, used in place of node weight
Returns

Definition at line 20 of file operator.h.

Here is the call graph for this function:

◆ get_weight() [2/2]

template<typename T , typename Scalar , typename W >
requires (is_one_of_v<Scalar,bool,bJet>)
Scalar Brush::util::get_weight ( const TreeNode & tn,
const W ** weights = nullptr )

Definition at line 50 of file operator.h.

Here is the call graph for this function: