OpenNN
2.2
Open Neural Networks Library
|
#include <cross_entropy_error.h>
Additional Inherited Members | |
Protected Attributes inherited from OpenNN::PerformanceTerm | |
NeuralNetwork * | neural_network_pointer |
DataSet * | data_set_pointer |
MathematicalModel * | mathematical_model_pointer |
NumericalDifferentiation * | numerical_differentiation_pointer |
bool | display |
This class represents the cross entropy performance term. This functional is used in pattern recognition problems.
Definition at line 39 of file cross_entropy_error.h.
|
explicit |
Default constructor. It creates a default cross entropy error performance term object, which is not associated to any neural network and not measured on any data set. It also initializes all the rest of class members to their default values.
Definition at line 28 of file cross_entropy_error.cpp.
|
explicit |
Neural network constructor. It creates a cross entropy error performance term associated to a neural network but not measured on any data set. It also initializes all the rest of class members to their default values.
new_neural_network_pointer | Pointer to a neural network object. |
Definition at line 40 of file cross_entropy_error.cpp.
|
explicit |
Data set constructor. It creates a cross entropy error not associated to any neural network but to be measured on a data set object. It also initializes all the rest of class members to their default values.
new_data_set_pointer | Pointer to a data set object. |
Definition at line 53 of file cross_entropy_error.cpp.
|
explicit |
Neural network and data set constructor. It creates a cross entropy error performance term object associated to a neural network and measured on a data set. It also initializes all the rest of class members to their default values:
new_neural_network_pointer | Pointer to a neural network object. |
new_data_set_pointer | Pointer to a data set object. |
Definition at line 67 of file cross_entropy_error.cpp.
|
explicit |
XML constructor. It creates a cross entropy error not associated to any neural network and not measured on any data set. It also sets all the rest of class members from a TinyXML document->
sum_squared_error_document | XML document with the class members. |
Definition at line 80 of file cross_entropy_error.cpp.
OpenNN::CrossEntropyError::CrossEntropyError | ( | const CrossEntropyError & | new_cross_entropy_error | ) |
Copy constructor. It creates a cross entropy error not associated to any neural network and not measured on any data set. It also sets all the rest of class members from another sum squared error object.
new_cross_entropy_error | Object to be copied. |
Definition at line 93 of file cross_entropy_error.cpp.
|
virtual |
Returns the cross entropy error of the neural network measured on the generalization instances of the data set.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 370 of file cross_entropy_error.cpp.
|
virtual |
Returns the cross entropy error gradient of a neural network on a data set. It uses the error back-propagation method.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 466 of file cross_entropy_error.cpp.
|
virtual |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 620 of file cross_entropy_error.cpp.
double OpenNN::CrossEntropyError::calculate_minimum_generalization_performance | ( | void | ) |
Returns the minimum achieveable cross entropy for the generalization data.
Definition at line 454 of file cross_entropy_error.cpp.
double OpenNN::CrossEntropyError::calculate_minimum_performance | ( | void | ) |
Returns the minimum achieveable cross entropy for the training data.
Definition at line 359 of file cross_entropy_error.cpp.
|
virtual |
|
virtual |
Checks that there are a neural network and a data set associated to the cross entropy error, and that the numbers of inputs and outputs in the neural network are equal to the numbers of inputs and targets in the data set.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 157 of file cross_entropy_error.cpp.
|
virtual |
Deserializes a TinyXML document into this cross entropy object.
document | TinyXML document containing the member data. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 677 of file cross_entropy_error.cpp.
CrossEntropyError & OpenNN::CrossEntropyError::operator= | ( | const CrossEntropyError & | other_cross_entropy_error | ) |
Assignment operator.
other_cross_entropy_error | Object to be copied. |
Definition at line 114 of file cross_entropy_error.cpp.
bool OpenNN::CrossEntropyError::operator== | ( | const CrossEntropyError & | other_cross_entropy_error | ) | const |
Equal to operator. If compares this object with another object of the same class, and returns true if they are equal, and false otherwise.
other_cross_entropy_error | Object to be compared with. |
Definition at line 133 of file cross_entropy_error.cpp.
|
virtual |
Serializes the cross entropy error object into a XML document of the TinyXML library. See the OpenNN manual for more information about the format of this document->
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 643 of file cross_entropy_error.cpp.