PlusML
Loading...
Searching...
No Matches
Public Member Functions | List of all members
plusml::MAEGrad Class Reference

Class implementing Mean Absolute Error gradient. More...

#include <mae_grad.h>

Public Member Functions

Eigen::MatrixXf Compute (const Eigen::MatrixXf &w, const Eigen::MatrixXf &X, const Eigen::MatrixXf &y) const override
 Calculate the MAE gradient for given inputs.
 

Detailed Description

Class implementing Mean Absolute Error gradient.

Member Function Documentation

◆ Compute()

Eigen::MatrixXf plusml::MAEGrad::Compute ( const Eigen::MatrixXf & w,
const Eigen::MatrixXf & X,
const Eigen::MatrixXf & y ) const
overridevirtual

Calculate the MAE gradient for given inputs.

Parameters
wParameters of the model
XMatrix of samples
yMatrix of targets
Returns
Matrix representing calculated gradient

Implements plusml::LossGradient.


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