16 static double cmpLoss(
const Eigen::MatrixXd &o,
const Eigen::MatrixXd &y);
26 static Eigen::MatrixXd
cmpLossGrad(
const Eigen::MatrixXd &yHat,
27 const Eigen::MatrixXd &y);
static Eigen::MatrixXd cmpLossGrad(const Eigen::MatrixXd &yHat, const Eigen::MatrixXd &y)
This function computes the loss gradient w.r.t the outputs.
static double cmpLoss(const Eigen::MatrixXd &o, const Eigen::MatrixXd &y)
This function computes the loss of the current iteration.