12 #ifndef MLPACK_METHODS_ANN_LOSS_FUNCTIONS_EARTH_MOVER_DISTANCE_HPP 13 #define MLPACK_METHODS_ANN_LOSS_FUNCTIONS_EARTH_MOVER_DISTANCE_HPP 30 typename InputDataType = arma::mat,
31 typename OutputDataType = arma::mat
47 template<
typename InputType,
typename TargetType>
48 typename InputType::elem_type
Forward(
const InputType& input,
49 const TargetType& target);
58 template<
typename InputType,
typename TargetType,
typename OutputType>
59 void Backward(
const InputType& input,
60 const TargetType& target,
71 template<
typename Archive>
72 void serialize(Archive& ar,
const unsigned int );
76 OutputDataType outputParameter;
83 #include "earth_mover_distance_impl.hpp" void Backward(const InputType &input, const TargetType &target, OutputType &output)
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 earth mover distance function measures the network's performance according to the Kantorovich-Rub...
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
EarthMoverDistance()
Create the EarthMoverDistance object.
InputType::elem_type Forward(const InputType &input, const TargetType &target)
Ordinary feed forward pass of a neural network.
OutputDataType & OutputParameter()
Modify the output parameter.
OutputDataType & OutputParameter() const
Get the output parameter.