OptimizationAlgorithm::Results Struct Reference

This structure contains the optimization algorithm results.
More...

#include <optimization_algorithm.h>

Public Member Functions

string write_stopping_condition () const
 Return a string with the stopping condition of the Results.
 
string object_to_string () const
 Returns a string representation of the results structure. More...
 
void save (const string &) const
 
Matrix< string > write_final_results (const size_t &) const
 Returns a default(empty) string matrix with the final results from training.
 
void resize_training_history (const size_t &)
 Resizes training history variables. More...
 
Matrix< string > write_final_results (const int &precision=3) const
 Writes final results of the training.
 

Public Attributes

StoppingCondition stopping_condition
 Stopping condition of the algorithm.
 
Vector< double > training_error_history
 History of the loss function loss over the training iterations.
 
Vector< double > selection_error_history
 History of the selection error over the training iterations.
 
Vector< double > final_parameters
 Final neural network parameters vector.
 
double final_parameters_norm
 Final neural network parameters norm.
 
double final_training_error
 Final loss function evaluation.
 
double final_selection_error
 Final selection error.
 
double final_gradient_norm
 Final gradient norm.
 
double elapsed_time
 Elapsed time of the training process.
 
size_t epochs_number
 Maximum number of training iterations.
 
string stopping_criterion
 Stopping criterion.
 

Detailed Description

This structure contains the optimization algorithm results.

Definition at line 58 of file optimization_algorithm.h.

Member Function Documentation

◆ object_to_string()

string object_to_string ( ) const

Returns a string representation of the results structure.

Returns a string representation of the current quasi-Newton method results structure.

Definition at line 498 of file optimization_algorithm.cpp.

◆ resize_training_history()

void resize_training_history ( const size_t &  new_size)

Resizes training history variables.

Resizes all the training history variables.

Parameters
new_sizeSize of training history variables.

Definition at line 489 of file optimization_algorithm.cpp.

◆ save()

void save ( const string &  ) const
Todo:

Definition at line 526 of file optimization_algorithm.cpp.


The documentation for this struct was generated from the following files: