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

#include <operator.h>

Public Types

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

Public Member Functions

RetType fit (const Dataset &d, TreeNode &tn) const
 
template<typename T = RetType, typename Scalar = T::Scalar, int N = T::NumDimensions>
RetType predict (const Dataset &d, TreeNode &tn, const W **weights=nullptr) const
 
RetType eval (const Dataset &d, TreeNode &tn, const W **weights=nullptr) const
 

Detailed Description

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

Definition at line 328 of file operator.h.

Member Typedef Documentation

◆ RetType

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

Definition at line 330 of file operator.h.

◆ W

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

Definition at line 331 of file operator.h.

Member Function Documentation

◆ eval()

template<typename S , bool Fit>
RetType Brush::Operator< NodeType::MeanLabel, S, Fit >::eval ( const Dataset & d,
TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 348 of file operator.h.

Here is the call graph for this function:

◆ fit()

template<typename S , bool Fit>
RetType Brush::Operator< NodeType::MeanLabel, S, Fit >::fit ( const Dataset & d,
TreeNode & tn ) const
inline

Definition at line 333 of file operator.h.

Here is the call graph for this function:

◆ predict()

template<typename S , bool Fit>
template<typename T = RetType, typename Scalar = T::Scalar, int N = T::NumDimensions>
RetType Brush::Operator< NodeType::MeanLabel, S, Fit >::predict ( const Dataset & d,
TreeNode & tn,
const W ** weights = nullptr ) const
inline

Definition at line 339 of file operator.h.

Here is the call graph for this function:

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