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
48 template<
typename PredictionType,
typename TargetType>
49 typename PredictionType::elem_type
Forward(
const PredictionType& prediction,
50 const TargetType& target);
60 template<
typename PredictionType,
typename TargetType,
typename LossType>
61 void Backward(
const PredictionType& prediction,
62 const TargetType& target,
73 template<
typename Archive>
74 void serialize(Archive& ar,
const uint32_t );
78 OutputDataType outputParameter;
85 #include "earth_mover_distance_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
void serialize(Archive &ar, const uint32_t)
Serialize the layer.
void Backward(const PredictionType &prediction, const TargetType &target, LossType &loss)
Ordinary feed backward pass of a neural network.
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...
EarthMoverDistance()
Create the EarthMoverDistance object.
PredictionType::elem_type Forward(const PredictionType &prediction, const TargetType &target)
Ordinary feed forward pass of a neural network.
OutputDataType & OutputParameter()
Modify the output parameter.
OutputDataType & OutputParameter() const
Get the output parameter.