Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Operator< NodeType::Terminal, S, Fit > Struct Template Reference

Terminal Overload. More...

#include <operator.h>

Public Types

using RetType = typename S::RetType
 
using W = typename S::WeightType
 

Public Member Functions

template<typename T = RetType, typename Scalar = typename T::Scalar>
requires (is_one_of_v<Scalar,bool,int,float>)
RetType eval (const Dataset &d, const TreeNode &tn, const W **weights=nullptr) const
 
template<typename T = RetType, typename Scalar = typename T::Scalar>
requires ( is_one_of_v<Scalar, bJet, iJet, fJet>)
RetType eval (const Dataset &d, const TreeNode &tn, const W **weights=nullptr) const
 
template<typename T >
auto get (const Dataset &d, const string &feature) const
 

Detailed Description

template<typename S, bool Fit>
struct Brush::Operator< NodeType::Terminal, S, Fit >

Terminal Overload.

Definition at line 250 of file operator.h.

Member Typedef Documentation

◆ RetType

template<typename S , bool Fit>
using Brush::Operator< NodeType::Terminal, S, Fit >::RetType = typename S::RetType

Definition at line 252 of file operator.h.

◆ W

template<typename S , bool Fit>
using Brush::Operator< NodeType::Terminal, S, Fit >::W = typename S::WeightType

Definition at line 253 of file operator.h.

Member Function Documentation

◆ eval() [1/2]

template<typename S , bool Fit>
template<typename T = RetType, typename Scalar = typename T::Scalar>
requires (is_one_of_v<Scalar,bool,int,float>)
RetType Brush::Operator< NodeType::Terminal, S, Fit >::eval ( const Dataset & d,
const TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 258 of file operator.h.

Here is the call graph for this function:

◆ eval() [2/2]

template<typename S , bool Fit>
template<typename T = RetType, typename Scalar = typename T::Scalar>
requires ( is_one_of_v<Scalar, bJet, iJet, fJet>)
RetType Brush::Operator< NodeType::Terminal, S, Fit >::eval ( const Dataset & d,
const TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 274 of file operator.h.

Here is the call graph for this function:

◆ get()

template<typename S , bool Fit>
template<typename T >
auto Brush::Operator< NodeType::Terminal, S, Fit >::get ( const Dataset & d,
const string & feature ) const
inline

Definition at line 290 of file operator.h.

Here is the call graph for this function:

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