4#include "PlusML/gradient/loss_gradient.h"
5#include "PlusML/util.h"
20 Eigen::MatrixXf Compute(
const Eigen::MatrixXf& w,
21 const Eigen::MatrixXf& X,
22 const Eigen::MatrixXf& y)
const override;
28 void L2Regularization(
const float c);
30 bool l2_regularization_enabled_ =
false;
31 float l2_regularization_coefficient_ = 0;
Base class for loss gradient implementations.
Definition loss_gradient.h:11
Class implementing Mean Square Error gradient.
Definition mse_grad.h:11