Go to the documentation of this file.
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>
61 const TargetType& target,
69 #include "empty_loss_impl.hpp"
The core includes that mlpack expects; standard C++ includes and Armadillo.
EmptyLoss()
Create the EmptyLoss object.
double Forward(const InputType &input, const TargetType &target)
Computes the Empty loss function.
Linear algebra utility functions, generally performed on matrices or vectors.
The empty loss does nothing, letting the user calculate the loss outside the model.
void Backward(const InputType &input, const TargetType &target, OutputType &output)
Ordinary feed backward pass of a neural network.