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

#include <split.h>

Public Types

using ArgTypes = typename S::ArgTypes
 
using FirstArg = typename S::FirstArg
 
using RetType = typename S::RetType
 
using W = typename S::WeightType
 
template<std::size_t N>
using NthType = typename S::NthType<N>
 

Public Member Functions

array< RetType, 2 > get_kids (const array< Dataset, 2 > &d, TreeNode &tn, const W **weights=nullptr) const
 
RetType fit (const Dataset &d, TreeNode &tn) const
 
RetType predict (const Dataset &d, TreeNode &tn, const W **weights=nullptr) const
 
RetType eval (const Dataset &d, TreeNode &tn, const W **weights=nullptr) const
 

Static Public Attributes

static constexpr size_t ArgCount = S::ArgCount
 
static constexpr Function< NTF {}
 

Detailed Description

template<NodeType NT, typename S, bool Fit>
struct Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >

Definition at line 188 of file split.h.

Member Typedef Documentation

◆ ArgTypes

template<NodeType NT, typename S , bool Fit>
using Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::ArgTypes = typename S::ArgTypes

Definition at line 190 of file split.h.

◆ FirstArg

template<NodeType NT, typename S , bool Fit>
using Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::FirstArg = typename S::FirstArg

Definition at line 191 of file split.h.

◆ NthType

template<NodeType NT, typename S , bool Fit>
template<std::size_t N>
using Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::NthType = typename S::NthType<N>

Definition at line 197 of file split.h.

◆ RetType

template<NodeType NT, typename S , bool Fit>
using Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::RetType = typename S::RetType

Definition at line 192 of file split.h.

◆ W

template<NodeType NT, typename S , bool Fit>
using Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::W = typename S::WeightType

Definition at line 193 of file split.h.

Member Function Documentation

◆ eval()

template<NodeType NT, typename S , bool Fit>
RetType Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::eval ( const Dataset & d,
TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 277 of file split.h.

Here is the call graph for this function:

◆ fit()

template<NodeType NT, typename S , bool Fit>
RetType Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::fit ( const Dataset & d,
TreeNode & tn ) const
inline

Definition at line 225 of file split.h.

Here is the call graph for this function:

◆ get_kids()

template<NodeType NT, typename S , bool Fit>
array< RetType, 2 > Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::get_kids ( const array< Dataset, 2 > & d,
TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 202 of file split.h.

Here is the call graph for this function:

◆ predict()

template<NodeType NT, typename S , bool Fit>
RetType Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::predict ( const Dataset & d,
TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 246 of file split.h.

Here is the call graph for this function:

Member Data Documentation

◆ ArgCount

template<NodeType NT, typename S , bool Fit>
constexpr size_t Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::ArgCount = S::ArgCount
staticconstexpr

Definition at line 194 of file split.h.

◆ F

template<NodeType NT, typename S , bool Fit>
constexpr Function<NT> Operator< NT, S, Fit, enable_if_t< is_in_v< NT, NodeType::SplitOn, NodeType::SplitBest > > >::F {}
staticconstexpr

Definition at line 200 of file split.h.


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