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 typename InputType::elem_type
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" InputType::elem_type Forward(const InputType &input, const TargetType &target)
Computes the Sigmoid CrossEntropy Error functions.
Linear algebra utility functions, generally performed on matrices or vectors.
SigmoidCrossEntropyError()
Create the SigmoidCrossEntropyError object.
OutputDataType & OutputParameter()
Modify the output parameter.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
void Backward(const InputType &input, const TargetType &target, OutputType &output)
Ordinary feed backward pass of a neural network.
OutputDataType & OutputParameter() const
Get the output parameter.
The SigmoidCrossEntropyError performance function measures the network's performance according to the...