![]() |
slope 6.2.1
|
Mean Squared Error (MSE) scoring metric. More...
#include <score.h>


Public Member Functions | |
| double | eval (const Eigen::MatrixXd &eta, const Eigen::MatrixXd &y, const std::unique_ptr< Loss > &) const override |
Public Member Functions inherited from slope::MinimizeScore | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from slope::Score | |
| static std::unique_ptr< Score > | create (const std::string &metric) |
Mean Squared Error (MSE) scoring metric.
Computes the average squared difference between predictions and true responses. Inherits from MinimizeScore since lower MSE values indicate better fit.
MSE = (1/n) Σ(y_i - η_i)² where:
|
overridevirtual |
Evaluates the MSE between predictions and true responses.
| eta | Matrix of model predictions |
| y | Matrix of true responses |
Implements slope::Score.