The cross-entropy performance function measures the network's performance according to the cross-entropy between the input and target distributions.
More...
|
| 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...
|
|
double & | Eps () |
| Modify the epsilon. More...
|
|
double | Eps () const |
| Get the epsilon. More...
|
|
template<typename InputType , typename TargetType > |
InputType::elem_type | Forward (const InputType &input, const TargetType &target) |
| Computes the cross-entropy function. More...
|
|
OutputDataType & | OutputParameter () |
| Modify the output parameter. More...
|
|
OutputDataType & | OutputParameter () const |
| Get the output parameter. More...
|
|
template<typename Archive > |
void | serialize (Archive &ar, const unsigned int) |
| Serialize the layer. More...
|
|
template<typename InputDataType = arma::mat, typename OutputDataType = arma::mat>
class mlpack::ann::CrossEntropyError< InputDataType, OutputDataType >
The cross-entropy performance function measures the network's performance according to the cross-entropy between the input and target distributions.
- Template Parameters
-
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.