NeuralNet 1.0
Loading...
Searching...
No Matches
NeuralNet::Loss Class Reference
Inheritance diagram for NeuralNet::Loss:
NeuralNet::BCE NeuralNet::MCE NeuralNet::Quadratic

Static Public Member Functions

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

Member Function Documentation

◆ cmpLoss()

static double NeuralNet::Loss::cmpLoss ( const Eigen::MatrixXd & o,
const Eigen::MatrixXd & y )
static

This function computes the loss of the current iteration.

Parameters
oThe outputs from the output layer
yThe labels (the expected values)
Returns
The loss based on the selected loss function

◆ cmpLossGrad()

static Eigen::MatrixXd NeuralNet::Loss::cmpLossGrad ( const Eigen::MatrixXd & yHat,
const Eigen::MatrixXd & y )
static

This function computes the loss gradient w.r.t the outputs.

Parameters
yHatThe outputs from the output layer
yThe labels (expected vals)
Returns
The current iteration's gradient

The documentation for this class was generated from the following file: