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