Vita
Public Member Functions | List of all members
vita::model_metric Class Referenceabstract

There are a lot of metrics related to a model (a lambda_f) and we don't want fat classes. More...

#include <model_metric.h>

Inherited by vita::accuracy_metric.

Public Member Functions

virtual double operator() (const core_class_lambda_f *, const dataframe &) const =0
 
virtual double operator() (const core_reg_lambda_f *, const dataframe &) const =0
 

Detailed Description

There are a lot of metrics related to a model (a lambda_f) and we don't want fat classes.

The Visitor pattern is ideal to simplify the interface of lambda_f and keep possibility for future expansions (new metrics).

This works quite well since metrics can be implemented in terms of the public interface of lambda_f.

Definition at line 31 of file model_metric.h.

Member Function Documentation

◆ operator()() [1/2]

virtual double vita::model_metric::operator() ( const core_class_lambda_f ,
const dataframe  
) const
pure virtual

Implemented in vita::accuracy_metric.

◆ operator()() [2/2]

virtual double vita::model_metric::operator() ( const core_reg_lambda_f ,
const dataframe  
) const
pure virtual

Implemented in vita::accuracy_metric.


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