The empty loss does nothing, letting the user calculate the loss outside the model. More...
Public Member Functions | |
| EmptyLoss () | |
| Create the EmptyLoss object. More... | |
template < typename PredictionType , typename TargetType , typename LossType > | |
| void | Backward (const PredictionType &prediction, const TargetType &target, LossType &loss) |
| Ordinary feed backward pass of a neural network. More... | |
template < typename PredictionType , typename TargetType > | |
| double | Forward (const PredictionType &input, const TargetType &target) |
| Computes the Empty loss function. More... | |
The empty loss does nothing, letting the user calculate the loss outside the model.
| InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
Definition at line 35 of file empty_loss.hpp.
| void Backward | ( | const PredictionType & | prediction, |
| const TargetType & | target, | ||
| LossType & | loss | ||
| ) |
Ordinary feed backward pass of a neural network.
| prediction | Prediction used for evaluating the specified loss function. |
| target | The target vector. |
| loss | The calculated error. |
| double Forward | ( | const PredictionType & | input, |
| const TargetType & | target | ||
| ) |
Computes the Empty loss function.
| prediction | Prediction used for evaluating the specified loss function. |
| target | The target vector. |