13 #ifndef MLPACK_METHODS_ANN_LOSS_FUNCTION_SIGMOID_CROSS_ENTROPY_ERROR_HPP 14 #define MLPACK_METHODS_ANN_LOSS_FUNCTION_SIGMOID_CROSS_ENTROPY_ERROR_HPP 49 typename InputDataType = arma::mat,
50 typename OutputDataType = arma::mat
66 template<
typename InputType,
typename TargetType>
67 inline double Forward(
const InputType&& input,
68 const TargetType&& target);
76 template<
typename InputType,
typename TargetType,
typename OutputType>
77 inline void Backward(
const InputType&& input,
78 const TargetType&& target,
89 template<
typename Archive>
90 void serialize(Archive& ar,
const unsigned int );
94 OutputDataType outputParameter;
101 #include "sigmoid_cross_entropy_error_impl.hpp" void Backward(const InputType &&input, const TargetType &&target, OutputType &&output)
Ordinary feed backward pass of a neural network.
SigmoidCrossEntropyError()
Create the SigmoidCrossEntropyError object.
OutputDataType & OutputParameter()
Modify the output parameter.
The core includes that mlpack expects; standard C++ includes and Armadillo.
double Forward(const InputType &&input, const TargetType &&target)
Computes the Sigmoid CrossEntropy Error functions.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType & OutputParameter() const
Get the output parameter.
The SigmoidCrossEntropyError performance function measures the network's performance according to the...