The SigmoidCrossEntropyError performance function measures the network's performance according to the cross-entropy function between the input and target distributions. More...
Public Member Functions | |
SigmoidCrossEntropyError () | |
Create the SigmoidCrossEntropyError object. More... | |
template < typename PredictionType , typename TargetType , typename LossType > | |
void | Backward (const PredictionType &prediction, const TargetType &target, LossType &loss) |
Ordinary feed backward pass of a neural network. More... | |
template < typename PredictionType , typename TargetType > | |
PredictionType::elem_type | Forward (const PredictionType &prediction, const TargetType &target) |
Computes the Sigmoid CrossEntropy Error functions. More... | |
OutputDataType & | OutputParameter () const |
Get the output parameter. More... | |
OutputDataType & | OutputParameter () |
Modify the output parameter. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the layer. More... | |
The SigmoidCrossEntropyError performance function measures the network's performance according to the cross-entropy function between the input and target distributions.
This function calculates the cross entropy given the real values instead of providing the sigmoid activations. The function uses this equivalent formulation: where x = input and z = target.
For more information, see the following paper.
InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
Definition at line 52 of file sigmoid_cross_entropy_error.hpp.
Create the SigmoidCrossEntropyError object.
|
inline |
Ordinary feed backward pass of a neural network.
prediction | Predictions used for evaluating the specified loss function. |
target | The target vector. |
loss | The calculated error. |
|
inline |
Computes the Sigmoid CrossEntropy Error functions.
prediction | Predictions used for evaluating the specified loss function. |
target | The target vector. |
|
inline |
Get the output parameter.
Definition at line 86 of file sigmoid_cross_entropy_error.hpp.
|
inline |
Modify the output parameter.
Definition at line 88 of file sigmoid_cross_entropy_error.hpp.
References SigmoidCrossEntropyError< InputDataType, OutputDataType >::serialize().
void serialize | ( | Archive & | ar, |
const uint32_t | |||
) |
Serialize the layer.
Referenced by SigmoidCrossEntropyError< InputDataType, OutputDataType >::OutputParameter().