OpenNN
2.2
Open Neural Networks Library
|
#include <mean_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 mean squared error performance term. The mean squared error measures the difference between the outputs from a neural network and the targets in a data set. This functional is used in data modeling problems, such as function regression, pattern recognition and time series prediction.
Definition at line 43 of file mean_squared_error.h.
|
explicit |
Default constructor. It creates a mean 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 27 of file mean_squared_error.cpp.
|
explicit |
Neural network constructor. It creates a mean squared error performance term object associated to a neural network object but not measured on any data set object. 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 mean_squared_error.cpp.
|
explicit |
Data set constructor. It creates a mean squared error performance term not associated to any neural network but to be measured on a given 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 mean_squared_error.cpp.
|
explicit |
Neural network and data set constructor. It creates a mean squared 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 69 of file mean_squared_error.cpp.
|
explicit |
XML constructor. It creates a mean squared error object with all pointers set to NULL. The object members are loaded by means of a XML document-> Please be careful with the format of that file, which is specified in the OpenNN manual.
mean_squared_error_document | TinyXML document with the mean squared error elements. |
Definition at line 83 of file mean_squared_error.cpp.
OpenNN::MeanSquaredError::MeanSquaredError | ( | const MeanSquaredError & | other_mean_squared_error | ) |
Copy constructor. It creates a copy of an existing mean squared error object.
other_mean_squared_error | Mean squared error object to be copied. |
Definition at line 95 of file mean_squared_error.cpp.
PerformanceTerm::FirstOrderPerformance OpenNN::MeanSquaredError::calculate_first_order_performance | ( | void | ) | const |
Definition at line 595 of file mean_squared_error.cpp.
|
virtual |
Returns a first order terms performance structure, which contains the values and the Jacobian of the performance terms function.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 911 of file mean_squared_error.cpp.
|
virtual |
Returns the mean squared error of the multilayer perceptron measured on the generalization instances of the data set.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 389 of file mean_squared_error.cpp.
|
virtual |
Calculates the performance gradient by means of the back-propagation algorithm, and returns it in a single vector of size the number of multilayer perceptron parameters.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 470 of file mean_squared_error.cpp.
|
virtual |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 583 of file mean_squared_error.cpp.
|
virtual |
Returns which would be the performance term 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 289 of file mean_squared_error.cpp.
PerformanceTerm::SecondOrderPerformance OpenNN::MeanSquaredError::calculate_second_order_performance | ( | void | ) | const |
Definition at line 618 of file mean_squared_error.cpp.
|
virtual |
Returns performance vector of the performance terms function for the mean squared error. It uses the error back-propagation method.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 643 of file mean_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 725 of file mean_squared_error.cpp.
|
virtual |
Returns the Jacobian matrix of the mean squared error function, whose elements are given by the derivatives of the squared errors data set with respect to the multilayer perceptron parameters.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 771 of file mean_squared_error.cpp.
|
virtual |
Checks that there are a neural network and a data set associated to the mean 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 mean_squared_error.cpp.
|
virtual |
Serializes the mean squared 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 946 of file mean_squared_error.cpp.