12 #ifndef MLPACK_METHODS_ANN_LAYER_SIGMOID_CROSS_ENTROPY_ERROR_HPP 13 #define MLPACK_METHODS_ANN_LAYER_SIGMOID_CROSS_ENTROPY_ERROR_HPP 48 typename InputDataType = arma::mat,
49 typename OutputDataType = arma::mat
66 inline double Forward(
const arma::Mat<eT>&& input,
67 const arma::Mat<eT>&& target);
76 inline void Backward(
const arma::Mat<eT>&& input,
77 const arma::Mat<eT>&& target,
78 arma::Mat<eT>&& output);
91 OutputDataType&
Delta()
const {
return delta; }
93 OutputDataType&
Delta() {
return delta; }
98 template<
typename Archive>
99 void serialize(Archive& ar,
const unsigned int );
103 OutputDataType delta;
106 InputDataType inputParameter;
109 OutputDataType outputParameter;
116 #include "sigmoid_cross_entropy_error_impl.hpp"
SigmoidCrossEntropyError()
Create the SigmoidCrossEntropyError object.
OutputDataType & OutputParameter()
Modify the output parameter.
void Backward(const arma::Mat< eT > &&input, const arma::Mat< eT > &&target, arma::Mat< eT > &&output)
Ordinary feed backward pass of a neural network.
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType & Delta() const
Get the delta.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
InputDataType & InputParameter() const
Get the input parameter.
OutputDataType & Delta()
Modify the delta.
OutputDataType & OutputParameter() const
Get the output parameter.
double Forward(const arma::Mat< eT > &&input, const arma::Mat< eT > &&target)
The SigmoidCrossEntropyError performance function measures the network's performance according to the...
InputDataType & InputParameter()
Modify the input parameter.