NeuralNet 1.0
Loading...
Searching...
No Matches
Loss.hpp
1#pragma once
2
3#include <Eigen/Dense>
4
5namespace NeuralNet {
6class Loss {
7 public:
16 static double cmpLoss(const Eigen::MatrixXd &o, const Eigen::MatrixXd &y);
17
26 static Eigen::MatrixXd cmpLossGrad(const Eigen::MatrixXd &yHat,
27 const Eigen::MatrixXd &y);
28};
29} // namespace NeuralNet
Definition Loss.hpp:6
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.