OpenNN
2.2
Open Neural Networks Library
|
#include <normalized_squared_error.h>
Private Attributes | |
Vector< double > | training_target_mean |
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 normalized squared error performance term. This performance term is used in data modeling problems. If it has a value of unity then the neural network is predicting the data "in the mean", A value of zero means perfect prediction of data.
Definition at line 44 of file normalized_squared_error.h.
|
explicit |
Neural network and data set constructor. It creates a normalized squared error performance term 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 68 of file normalized_squared_error.cpp.
|
explicit |
Neural network constructor. It creates a normalized squared error performance term associated to a neural network object 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 normalized_squared_error.cpp.
|
explicit |
Data set constructor. It creates a normalized squared error performance term 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 54 of file normalized_squared_error.cpp.
|
explicit |
Default constructor. It creates a normalized squared error performance term object 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 normalized_squared_error.cpp.
|
explicit |
XML constructor. It creates a normalized squared 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->
normalized_squared_error_document | XML document with the class members. |
Definition at line 81 of file normalized_squared_error.cpp.
|
virtual |
Returns a first order performance terms performance structure, which contains the values and the Jacobian of the performance terms function.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1009 of file normalized_squared_error.cpp.
|
virtual |
Returns the normalized squared error function gradient of a multilayer perceptron on a data set. It uses the error back-propagation method.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 523 of file normalized_squared_error.cpp.
|
virtual |
Returns the normalized squared error function Hessian of a multilayer perceptron on a data set. It uses the error back-propagation method.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 673 of file normalized_squared_error.cpp.
Vector< size_t > OpenNN::NormalizedSquaredError::calculate_maximal_errors | ( | const size_t & | maximal_errors_number = 10 | ) | const |
Returns a vector with the indices of the instances which have the maximum error.
maximal_errors_number | Number of instances required. |
Definition at line 1108 of file normalized_squared_error.cpp.
double OpenNN::NormalizedSquaredError::calculate_normalization_coefficient | ( | const Matrix< double > & | target_data, |
const Vector< double > & | target_data_mean | ||
) | const |
Returns the normalization coefficient to be used for the performance of the error. This is measured on the training instances of the data set.
Definition at line 103 of file normalized_squared_error.cpp.
|
virtual |
Returns which would be the performance of a multilayer perceptron for an hypothetical vector of parameters. It does not set that vector of parameters to the multilayer perceptron.
parameters | Vector of potential parameters for the multilayer perceptron associated to the performance functional. |
Implements OpenNN::PerformanceTerm.
Definition at line 306 of file normalized_squared_error.cpp.
|
virtual |
Returns performance vector of the performance terms function for the normalized squared error. It uses the error back-propagation method.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 686 of file normalized_squared_error.cpp.
|
virtual |
Returns which would be the performance terms performance vector of a multilayer perceptron for an hypothetical vector of multilayer perceptron parameters. It does not set that vector of parameters to the multilayer perceptron.
network_parameters | Vector of a potential multilayer_perceptron_pointer parameters for the multilayer perceptron associated to the performance functional. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 787 of file normalized_squared_error.cpp.
|
virtual |
Returns the terms_Jacobian matrix of the sum squared error function, whose elements are given by the derivatives of the squared errors data set with respect to the multilayer perceptron parameters. The terms_Jacobian matrix here is computed using a back-propagation algorithm.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 837 of file normalized_squared_error.cpp.
|
virtual |
Checks that there are a neural network and a data set associated to the normalized squared 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. If some of the above conditions is not hold, the method throws an exception.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 115 of file normalized_squared_error.cpp.
|
virtual |
Loads a root mean squared error object from a XML document.
document | Pointer to a TinyXML document with the object data. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1185 of file normalized_squared_error.cpp.
|
virtual |
Serializes the normalized squared error object into a XML document of the TinyXML library. See the OpenNN manual for more information about the format of this element.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1152 of file normalized_squared_error.cpp.
|
virtual |
Returns a string with the default information of the performance term. It will be used by the training strategy to monitor the training process. By default this information is empty.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1214 of file normalized_squared_error.cpp.