PlusML
|
Class implementing Mean Square Error gradient. More...
#include <mse_grad.h>
Public Member Functions | |
Eigen::MatrixXf | Compute (const Eigen::MatrixXf &w, const Eigen::MatrixXf &X, const Eigen::MatrixXf &y) const override |
Calculate the MSE gradient for given inputs. | |
void | L2Regularization (const float c) |
Set L2 regularization coefficient. | |
Class implementing Mean Square Error gradient.
|
overridevirtual |
Calculate the MSE gradient for given inputs.
w | Parameters of the model |
X | Matrix of samples |
y | Matrix of targets |
Implements plusml::LossGradient.
void plusml::MSEGrad::L2Regularization | ( | const float | c | ) |
Set L2 regularization coefficient.
c | L2 regularization coefficient |