PlusML
|
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. | |
Class implementing Mean Absolute Error gradient.
|
overridevirtual |
Calculate the MAE gradient for given inputs.
w | Parameters of the model |
X | Matrix of samples |
y | Matrix of targets |
Implements plusml::LossGradient.