OpenNN
2.2
Open Neural Networks Library
|
#include <sum_squared_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 sum squared peformance term functional. This is used as the performance term in data modeling problems, such as function regression, pattern recognition or time series prediction.
Definition at line 42 of file sum_squared_error.h.
|
explicit |
Default constructor. It creates a sum squared error performance term 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 sum_squared_error.cpp.
|
explicit |
Neural network constructor. It creates a sum squared 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 sum_squared_error.cpp.
|
explicit |
Data set constructor. It creates a sum squared 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 sum_squared_error.cpp.
|
explicit |
Neural network and data set constructor. It creates a sum squared error 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 sum_squared_error.cpp.
|
explicit |
XML constructor. It creates a sum 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.
sum_squared_error_document | XML document with the class members. |
Definition at line 80 of file sum_squared_error.cpp.
OpenNN::SumSquaredError::SumSquaredError | ( | const SumSquaredError & | new_sum_squared_error | ) |
Copy constructor. It creates a sum 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 another sum squared error object.
new_sum_squared_error | Object to be copied. |
Definition at line 94 of file sum_squared_error.cpp.
|
virtual |
Returns the first order performance of the terms performance function. This is a structure containing the performance terms vector and the performance terms Jacobian.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 964 of file sum_squared_error.cpp.
|
virtual |
Calculates the performance term gradient by means of the back-propagation algorithm, and returns it in a single vector of size the number of neural network parameters.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 447 of file sum_squared_error.cpp.
|
virtual |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1059 of file sum_squared_error.cpp.
|
virtual |
Calculates the Hessian by means of the back-propagation algorithm, and returns it in a single symmetric matrix of size the number of neural network parameters.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 568 of file sum_squared_error.cpp.
|
virtual |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1071 of file sum_squared_error.cpp.
|
virtual |
Returns which would be the sum squard error performance of a neural network for an hypothetical vector of parameters. It does not set that vector of parameters to the neural network.
parameters | Vector of potential parameters for the neural network associated to the performance term. |
Implements OpenNN::PerformanceTerm.
Definition at line 268 of file sum_squared_error.cpp.
|
virtual |
Returns the performance terms vector for a hypotetical vector of parameters.
parameters | Neural network parameters for which the performance terms vector is to be computed. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 773 of file sum_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 821 of file sum_squared_error.cpp.
|
virtual |
Checks that there are a neural network and a data set associated to the sum 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 118 of file sum_squared_error.cpp.
|
virtual |
Loads a sum squared error object from a XML document.
document | TinyXML document containing the members of the object. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 1127 of file sum_squared_error.cpp.