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
49 template<
typename InputType,
typename TargetType>
50 double Forward(
const InputType& input,
const TargetType& target);
59 template<
typename InputType,
typename TargetType,
typename OutputType>
60 void Backward(
const InputType& input,
61 const TargetType& target,
69 #include "empty_loss_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
void Backward(const InputType &input, const TargetType &target, OutputType &output)
Ordinary feed backward pass of a neural network.
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.
EmptyLoss()
Create the EmptyLoss object.
double Forward(const InputType &input, const TargetType &target)
Computes the Empty loss function.