OpenNN
2.2
Open Neural Networks Library
|
#include <neural_parameters_norm.h>
Private Attributes | |
double | neural_parameters_norm_weight |
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 neural parameters norm performance term. This performance term is very useful as a regularization functional in data modeling, optimal control or inverse problems.
Definition at line 40 of file neural_parameters_norm.h.
|
explicit |
Default constructor. It creates a neural parameters norm functional not associated to any neural network. It also initializes all the rest of class members to their default values.
Definition at line 27 of file neural_parameters_norm.cpp.
|
explicit |
Neural network constructor. It creates a neural parameters norm functional associated to a neural network. 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 41 of file neural_parameters_norm.cpp.
|
explicit |
XML constructor. It creates a neural parameters norm object not associated to any neural network. 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.
neural_parameters_norm_document | TinyXML document with the neural parameters norm elements. |
Definition at line 56 of file neural_parameters_norm.cpp.
|
virtual |
Destructor. This destructor does not delete any pointer.
Definition at line 70 of file neural_parameters_norm.cpp.
|
virtual |
Calculates the objective gradient by means of the back-propagation algorithm, and returns it in a single vector of size the number of neural parameters.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 199 of file neural_parameters_norm.cpp.
|
virtual |
Returns the default gradient vector of the performance term. It uses numerical differentiation.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 283 of file neural_parameters_norm.cpp.
|
virtual |
Calculates the objective Hessian by means of the back-propagation algorithm, and returns it in a single symmetric matrix of size the number of multilayer perceptron parameters.
Second derivatives.
Case including independent parameters.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 225 of file neural_parameters_norm.cpp.
|
virtual |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 313 of file neural_parameters_norm.cpp.
|
virtual |
Returns the performance of this peformance term. It is equal to the weighted norm of the parameters from the associated neural network.
Implements OpenNN::PerformanceTerm.
Definition at line 174 of file neural_parameters_norm.cpp.
|
virtual |
Returns the neural parameters norm value of a neural network for a vector of parameters. It does not set that vector of parameters to the neural network.
parameters | Vector of parameters for the neural network associated to the performance term. |
Implements OpenNN::PerformanceTerm.
Definition at line 249 of file neural_parameters_norm.cpp.
|
virtual |
Checks that there is a neural network associated to this performance term, and that there is a multilayer perceptron in the neural network. If some of the above conditions is not hold, the method throws an exception.
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 119 of file neural_parameters_norm.cpp.
|
virtual |
Loads a sum squared error object from a XML document.
document | TinyXML document containing the object members. |
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 435 of file neural_parameters_norm.cpp.
|
virtual |
Sets the default values for the neural parameters norm object:
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 105 of file neural_parameters_norm.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 375 of file neural_parameters_norm.cpp.
|
virtual |
Returns a string with the name of the neural parameters norm performance type, "NEURAL_PARAMETERS_NORM".
Reimplemented from OpenNN::PerformanceTerm.
Definition at line 367 of file neural_parameters_norm.cpp.