The cross-entropy performance function measures the network's performance according to the cross-entropy between the input and target distributions. More...
Public Member Functions | |
| CrossEntropyError (const double eps=1e-10) | |
| Create the CrossEntropyError object. More... | |
template < typename InputType , typename TargetType , typename OutputType > | |
| void | Backward (const InputType &&input, const TargetType &&target, OutputType &&output) |
| Ordinary feed backward pass of a neural network. More... | |
| OutputDataType & | Delta () const |
| Get the delta. More... | |
| OutputDataType & | Delta () |
| Modify the delta. More... | |
| double | Eps () const |
| Get the epsilon. More... | |
| double & | Eps () |
| Modify the epsilon. More... | |
template < typename InputType , typename TargetType > | |
| double | Forward (const InputType &&input, const TargetType &&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 cross-entropy performance function measures the network's performance according to the cross-entropy between the input and target distributions.
| 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 34 of file cross_entropy_error.hpp.
| CrossEntropyError | ( | const double | eps = 1e-10 | ) |
Create the CrossEntropyError object.
| eps | The minimum value used for computing logarithms and denominators in a numerically stable way. |
| void Backward | ( | const InputType && | input, |
| const TargetType && | target, | ||
| OutputType && | output | ||
| ) |
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 76 of file cross_entropy_error.hpp.
|
inline |
Modify the delta.
Definition at line 78 of file cross_entropy_error.hpp.
|
inline |
Get the epsilon.
Definition at line 81 of file cross_entropy_error.hpp.
|
inline |
Modify the epsilon.
Definition at line 83 of file cross_entropy_error.hpp.
References CrossEntropyError< InputDataType, OutputDataType >::serialize().
| double Forward | ( | const InputType && | input, |
| const TargetType && | target | ||
| ) |
|
inline |
Get the input parameter.
Definition at line 66 of file cross_entropy_error.hpp.
|
inline |
Modify the input parameter.
Definition at line 68 of file cross_entropy_error.hpp.
|
inline |
Get the output parameter.
Definition at line 71 of file cross_entropy_error.hpp.
|
inline |
Modify the output parameter.
Definition at line 73 of file cross_entropy_error.hpp.
| void serialize | ( | Archive & | ar, |
| const unsigned | int | ||
| ) |
Serialize the layer.
Referenced by CrossEntropyError< InputDataType, OutputDataType >::Eps().