Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::ResidualEvaluator< PT > Struct Template Reference

#include <weight_optimizer.h>

Public Types

typedef float Scalar
 

Public Member Functions

 ResidualEvaluator (PT &program, Dataset const &dataset)
 
template<typename T >
auto operator() (Eigen::DenseBase< T > &parameters, Eigen::DenseBase< T > &residuals) const noexcept -> void
 
template<typename T >
auto operator() (T const *parameters, T *residuals) const -> bool
 
auto NumParameters () const -> size_t
 
auto NumResiduals () const -> size_t
 
auto GetProgram () const
 
auto GetDataset () const
 
auto GetTarget () const
 

Private Attributes

std::reference_wrapper< PTprogram_
 
std::reference_wrapper< Dataset constdataset_
 
std::reference_wrapper< ArrayXf consty_true_
 
size_t numParameters_
 

Detailed Description

template<typename PT>
struct Brush::ResidualEvaluator< PT >

Definition at line 31 of file weight_optimizer.h.

Member Typedef Documentation

◆ Scalar

Definition at line 32 of file weight_optimizer.h.

Constructor & Destructor Documentation

◆ ResidualEvaluator()

template<typename PT >
Brush::ResidualEvaluator< PT >::ResidualEvaluator ( PT & program,
Dataset const & dataset )
inline

Definition at line 33 of file weight_optimizer.h.

Member Function Documentation

◆ GetDataset()

template<typename PT >
auto Brush::ResidualEvaluator< PT >::GetDataset ( ) const
inline

Definition at line 67 of file weight_optimizer.h.

Here is the caller graph for this function:

◆ GetProgram()

template<typename PT >
auto Brush::ResidualEvaluator< PT >::GetProgram ( ) const
inline

Definition at line 66 of file weight_optimizer.h.

Here is the caller graph for this function:

◆ GetTarget()

template<typename PT >
auto Brush::ResidualEvaluator< PT >::GetTarget ( ) const
inline

Definition at line 68 of file weight_optimizer.h.

Here is the caller graph for this function:

◆ NumParameters()

template<typename PT >
auto Brush::ResidualEvaluator< PT >::NumParameters ( ) const -> size_t
inline

Definition at line 64 of file weight_optimizer.h.

◆ NumResiduals()

template<typename PT >
auto Brush::ResidualEvaluator< PT >::NumResiduals ( ) const -> size_t
inline

Definition at line 65 of file weight_optimizer.h.

◆ operator()() [1/2]

template<typename PT >
template<typename T >
auto Brush::ResidualEvaluator< PT >::operator() ( Eigen::DenseBase< T > & parameters,
Eigen::DenseBase< T > & residuals ) const -> void
inlinenoexcept

Definition at line 41 of file weight_optimizer.h.

Here is the call graph for this function:

◆ operator()() [2/2]

template<typename PT >
template<typename T >
auto Brush::ResidualEvaluator< PT >::operator() ( T const * parameters,
T * residuals ) const -> bool
inline

Definition at line 47 of file weight_optimizer.h.

Here is the call graph for this function:

Member Data Documentation

◆ dataset_

template<typename PT >
std::reference_wrapper<Dataset const> Brush::ResidualEvaluator< PT >::dataset_
private

Definition at line 72 of file weight_optimizer.h.

◆ numParameters_

template<typename PT >
size_t Brush::ResidualEvaluator< PT >::numParameters_
private

Definition at line 74 of file weight_optimizer.h.

◆ program_

template<typename PT >
std::reference_wrapper<PT> Brush::ResidualEvaluator< PT >::program_
private

Definition at line 71 of file weight_optimizer.h.

◆ y_true_

template<typename PT >
std::reference_wrapper<ArrayXf const> Brush::ResidualEvaluator< PT >::y_true_
private

Definition at line 73 of file weight_optimizer.h.


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