12 #ifndef MLPACK_METHODS_ANN_LAYER_NEGATIVE_LOG_LIKELIHOOD_HPP 13 #define MLPACK_METHODS_ANN_LAYER_NEGATIVE_LOG_LIKELIHOOD_HPP 32 typename InputDataType = arma::mat,
33 typename OutputDataType = arma::mat
50 double Forward(
const arma::Mat<eT>&& input, arma::Mat<eT>&& target);
64 void Backward(
const arma::Mat<eT>&& input,
65 const arma::Mat<eT>&& target,
66 arma::Mat<eT>&& output);
86 template<
typename Archive>
87 void Serialize(Archive& ,
const unsigned int );
104 #include "negative_log_likelihood_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
InputDataType inputParameter
Locally-stored input parameter object.
OutputDataType & OutputParameter()
Modify the output parameter.
The core includes that mlpack expects; standard C++ includes and Armadillo.
NegativeLogLikelihood()
Create the NegativeLogLikelihoodLayer object.
InputDataType & InputParameter()
Modify the input parameter.
OutputDataType & OutputParameter() const
Get the output parameter.
Implementation of the negative log likelihood layer.
OutputDataType & Delta() const
Get the delta.
OutputDataType outputParameter
Locally-stored output parameter object.
OutputDataType delta
Locally-stored delta object.
InputDataType & InputParameter() const
Get the input parameter.
double Forward(const arma::Mat< eT > &&input, arma::Mat< eT > &&target)
OutputDataType & Delta()
Modify the delta.
void Backward(const arma::Mat< eT > &&input, const arma::Mat< eT > &&target, arma::Mat< eT > &&output)
Ordinary feed backward pass of a neural network.
void Serialize(Archive &, const unsigned int)
Serialize the layer.