Vita
|
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 |
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.
|
pure virtual |
Implemented in vita::accuracy_metric.
|
pure virtual |
Implemented in vita::accuracy_metric.