14 #ifndef MLPACK_METHODS_ANN_LOSS_FUNCTION_EMPTY_LOSS_HPP 15 #define MLPACK_METHODS_ANN_LOSS_FUNCTION_EMPTY_LOSS_HPP 32 typename InputDataType = arma::mat,
33 typename OutputDataType = arma::mat
50 template<
typename PredictionType,
typename TargetType>
51 double Forward(
const PredictionType& input,
const TargetType& target);
61 template<
typename PredictionType,
typename TargetType,
typename LossType>
62 void Backward(
const PredictionType& prediction,
63 const TargetType& target,
71 #include "empty_loss_impl.hpp" void Backward(const PredictionType &prediction, const TargetType &target, LossType &loss)
Ordinary feed backward pass of a neural network.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
The empty loss does nothing, letting the user calculate the loss outside the model.
double Forward(const PredictionType &input, const TargetType &target)
Computes the Empty loss function.
EmptyLoss()
Create the EmptyLoss object.