![]()  | 
  
    slope 6.0.1
    
   | 
 
Deviance scoring metric. More...
#include <score.h>


Public Member Functions | |
| double | eval (const Eigen::MatrixXd &eta, const Eigen::MatrixXd &y, const std::unique_ptr< Loss > &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) | 
Deviance scoring metric.
Computes the statistical deviance, which is -2 times the log-likelihood of the predictions under the specified loss function. Inherits from MinimizeScore since lower deviance indicates better model fit.
Deviance = 2 * ( log L(saturated) - log L (fitted) )
The exact form of deviance depends on the loss function used.
      
  | 
  overridevirtual | 
Evaluates the deviance between predictions and true responses.
| eta | Matrix of model predictions | 
| y | Matrix of true responses | 
| loss | Loss function that defines the likelihood | 
Implements slope::Score.