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 eT > | |
| void | Backward (const arma::Mat< eT > &&input, const arma::Mat< eT > &&target, arma::Mat< eT > &&output) |
| Ordinary feed backward pass of a neural network. More... | |
| OutputDataType & | Delta () const |
| Get the delta. More... | |
| OutputDataType & | Delta () |
| Modify the delta. More... | |
template < typename eT > | |
| double | Forward (const arma::Mat< eT > &&input, const arma::Mat< eT > &&target) |
| InputDataType & | InputParameter () const |
| Get the input parameter. More... | |
| InputDataType & | InputParameter () |
| Modify the input parameter. More... | |
| OutputDataType & | OutputParameter () const |
| Get the output parameter. More... | |
| OutputDataType & | OutputParameter () |
| Modify the output parameter. More... | |
template < typename Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| 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 51 of file sigmoid_cross_entropy_error.hpp.
Create the SigmoidCrossEntropyError object.
|
inline |
Ordinary feed backward pass of a neural network.
| input | The propagated input activation. |
| target | The target vector. |
| output | The calculated error. |
|
inline |
Get the delta.
Definition at line 91 of file sigmoid_cross_entropy_error.hpp.
|
inline |
Modify the delta.
Definition at line 93 of file sigmoid_cross_entropy_error.hpp.
References SigmoidCrossEntropyError< InputDataType, OutputDataType >::serialize().
|
inline |
|
inline |
Get the input parameter.
Definition at line 81 of file sigmoid_cross_entropy_error.hpp.
|
inline |
Modify the input parameter.
Definition at line 83 of file sigmoid_cross_entropy_error.hpp.
|
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.
| void serialize | ( | Archive & | ar, |
| const unsigned | int | ||
| ) |
Serialize the layer.
Referenced by SigmoidCrossEntropyError< InputDataType, OutputDataType >::Delta().