![]() |
slope 6.0.1
|
Scoring metric that aims to minimize the score value. More...
#include <score.h>


Public Member Functions | |
| bool | isWorse (double a, double b) const override |
| double | initValue () const override |
Public Member Functions inherited from slope::Score | |
| std::function< bool(double, double)> | getComparator () const |
| virtual double | eval (const Eigen::MatrixXd &eta, const Eigen::MatrixXd &y, const std::unique_ptr< Loss > &loss) const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from slope::Score | |
| static std::unique_ptr< Score > | create (const std::string &metric) |
Scoring metric that aims to minimize the score value.
This class implements a scoring metric where lower values indicate better performance (e.g., MSE, MAE, deviance). It overrides the base Score class comparison methods to establish that higher values are worse.
|
overridevirtual |
Returns the initial value for minimization metrics.
Implements slope::Score.
|
overridevirtual |
Determines if score a is worse than score b.
| a | First score to compare |
| b | Second score to compare |
Implements slope::Score.