OpenNN
2.2
Open Neural Networks Library
|
#include <minkowski_error.h>
Private Attributes | |
double | Minkowski_parameter |
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 Minkowski error performance term. The Minkowski error measures the difference between the outputs of a neural network and the targets in a data set. This performance term is used in data modeling problems. It can be more useful when the data set presents outliers.
Definition at line 42 of file minkowski_error.h.
|
explicit |
Default constructor. It creates Minkowski 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 minkowski_error.cpp.
|
explicit |
Neural network constructor. It creates a Minkowski 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 minkowski_error.cpp.
|
explicit |
Data set constructor. It creates a Minkowski error performance term not associated to any neural network but to be measured on a data set. 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 minkowski_error.cpp.
|
explicit |
Neural network and data set constructor. It creates a Minkowski 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 minkowski_error.cpp.
|
explicit |
XML constructor. It creates a Minkowski error object neither associated to a neural network nor to a data set. The object members are loaded by means of a XML document.
mean_squared_error_document | TinyXML document with the Minkowski error elements. |
Definition at line 83 of file minkowski_error.cpp.
|
virtual |
Destructor. It does not delete any pointer.
Definition at line 97 of file minkowski_error.cpp.
|
virtual |
Returns the Minkowski error of the multilayer perceptron measured on the generalization instances of the data set.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 429 of file minkowski_error.cpp.
|
virtual |
Returns the Minkowski error gradient of a neural network measured on a data set. It uses the error back-propagation method.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 510 of file minkowski_error.cpp.
|
virtual |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 639 of file minkowski_error.cpp.
|
virtual |
Returns which would be the Minkowski error of 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 Minkowski error. |
Implements OpenNN::PerformanceTerm.
Definition at line 332 of file minkowski_error.cpp.
|
virtual |
Checks that there are a neural network and a data set associated to the Minkowski 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 163 of file minkowski_error.cpp.
|
virtual |
Loads a Minkowski error object from a XML document.
document | TinyXML document containing the members of the object. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 715 of file minkowski_error.cpp.
|
virtual |
Sets the default values to a Minkowski error object:
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 122 of file minkowski_error.cpp.
void OpenNN::MinkowskiError::set_Minkowski_parameter | ( | const double & | new_Minkowski_parameter | ) |
Sets a new Minkowski exponent value to be used in order to calculate the error. The Minkowski R-value must be comprised between 1 and 2.
new_Minkowski_parameter | Minkowski exponent value. |
Definition at line 136 of file minkowski_error.cpp.
|
virtual |
Serializes the Minkowski 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 670 of file minkowski_error.cpp.