OpenNN  2.2
Open Neural Networks Library
Classes | Public Member Functions | List of all members
OpenNN::GoldenSectionOrder Class Reference

#include <golden_section_order.h>

Inheritance diagram for OpenNN::GoldenSectionOrder:
OpenNN::OrderSelectionAlgorithm

Classes

struct  GoldenSectionOrderResults
 

Public Member Functions

 GoldenSectionOrder (void)
 
 GoldenSectionOrder (TrainingStrategy *)
 
 GoldenSectionOrder (const tinyxml2::XMLDocument &)
 
 GoldenSectionOrder (const std::string &)
 
virtual ~GoldenSectionOrder (void)
 
GoldenSectionOrderResultsperform_order_selection (void)
 
tinyxml2::XMLDocument * to_XML (void) const
 
void from_XML (const tinyxml2::XMLDocument &)
 
void write_XML (tinyxml2::XMLPrinter &) const
 
void save (const std::string &) const
 
void load (const std::string &)
 
- Public Member Functions inherited from OpenNN::OrderSelectionAlgorithm
 OrderSelectionAlgorithm (void)
 
 OrderSelectionAlgorithm (TrainingStrategy *)
 
 OrderSelectionAlgorithm (const std::string &)
 
 OrderSelectionAlgorithm (const tinyxml2::XMLDocument &)
 
virtual ~OrderSelectionAlgorithm (void)
 
TrainingStrategyget_training_strategy_pointer (void) const
 
bool has_training_strategy (void) const
 
const size_t & get_maximum_order (void) const
 
const size_t & get_minimum_order (void) const
 
const size_t & get_trials_number (void) const
 
const bool & get_reserve_parameters_data (void) const
 
const bool & get_reserve_loss_data (void) const
 
const bool & get_reserve_selection_loss_data (void) const
 
const bool & get_reserve_minimal_parameters (void) const
 
const PerformanceCalculationMethodget_loss_calculation_method (void) const
 
const bool & get_display (void) const
 
const double & get_selection_loss_goal (void) const
 
const size_t & get_maximum_iterations_number (void) const
 
const double & get_maximum_time (void) const
 
const double & get_tolerance (void) const
 
std::string write_loss_calculation_method (void) const
 
void set_training_strategy_pointer (TrainingStrategy *)
 
void set_default (void)
 
void set_maximum_order (const size_t &)
 
void set_minimum_order (const size_t &)
 
void set_trials_number (const size_t &)
 
void set_reserve_parameters_data (const bool &)
 
void set_reserve_loss_data (const bool &)
 
void set_reserve_selection_loss_data (const bool &)
 
void set_reserve_minimal_parameters (const bool &)
 
void set_loss_calculation_method (const PerformanceCalculationMethod &)
 
void set_loss_calculation_method (const std::string &)
 
void set_display (const bool &)
 
void set_selection_loss_goal (const double &)
 
void set_maximum_iterations_number (const size_t &)
 
void set_maximum_time (const double &)
 
void set_tolerance (const double &)
 
Vector< double > perform_minimum_model_evaluation (const size_t &)
 
Vector< double > perform_maximum_model_evaluation (const size_t &)
 
Vector< double > perform_mean_model_evaluation (const size_t &)
 
Vector< double > get_final_losss (const TrainingStrategy::Results &) const
 
Vector< double > perform_model_evaluation (const size_t &)
 
Vector< double > get_parameters_order (const size_t &) const
 
void delete_selection_history (void)
 
void delete_loss_history (void)
 
void delete_parameters_history (void)
 
void check (void) const
 

Additional Inherited Members

- Public Types inherited from OpenNN::OrderSelectionAlgorithm
enum  PerformanceCalculationMethod { Minimum, Maximum, Mean }
 
enum  StoppingCondition {
  MaximumTime, SelectionLossGoal, MaximumIterations, MaximumSelectionFailures,
  MinimumTemperature, AlgorithmFinished
}
 
- Protected Attributes inherited from OpenNN::OrderSelectionAlgorithm
TrainingStrategytraining_strategy_pointer
 
Vector< size_t > order_history
 
Vector< double > selection_loss_history
 
Vector< double > loss_history
 
Vector< Vector< double > > parameters_history
 
size_t minimum_order
 
size_t maximum_order
 
size_t trials_number
 
PerformanceCalculationMethod loss_calculation_method
 
bool reserve_parameters_data
 
bool reserve_loss_data
 
bool reserve_selection_loss_data
 
bool reserve_minimal_parameters
 
bool display
 
double selection_loss_goal
 
size_t maximum_iterations_number
 
double maximum_time
 
double tolerance
 

Detailed Description

This concrete class represents a golden section algorithm for the order selection of a neural network.

Definition at line 47 of file golden_section_order.h.

Constructor & Destructor Documentation

◆ GoldenSectionOrder() [1/3]

OpenNN::GoldenSectionOrder::GoldenSectionOrder ( TrainingStrategy new_training_strategy_pointer)
explicit

Training strategy constructor.

Parameters
new_training_strategy_pointerPointer to a gradient descent object.

Definition at line 35 of file golden_section_order.cpp.

◆ GoldenSectionOrder() [2/3]

OpenNN::GoldenSectionOrder::GoldenSectionOrder ( const tinyxml2::XMLDocument &  golden_section_order_document)
explicit

XML constructor.

Parameters
golden_section_order_documentPointer to a TinyXML document containing the golden section order data.

Definition at line 45 of file golden_section_order.cpp.

◆ GoldenSectionOrder() [3/3]

OpenNN::GoldenSectionOrder::GoldenSectionOrder ( const std::string &  file_name)
explicit

File constructor.

Parameters
file_nameName of XML golden section order file.

Definition at line 56 of file golden_section_order.cpp.

Member Function Documentation

◆ from_XML()

void OpenNN::GoldenSectionOrder::from_XML ( const tinyxml2::XMLDocument &  document)

Deserializes a TinyXML document into this golden section order object.

Parameters
documentTinyXML document containing the member data.

Definition at line 764 of file golden_section_order.cpp.

◆ load()

void OpenNN::GoldenSectionOrder::load ( const std::string &  file_name)

Loads a golden section order object from a XML-type file.

Parameters
file_nameName of golden section order XML-type file.

Definition at line 1048 of file golden_section_order.cpp.

◆ save()

void OpenNN::GoldenSectionOrder::save ( const std::string &  file_name) const

Saves to a XML-type file the members of the golden section order object.

Parameters
file_nameName of golden section order XML-type file.

Definition at line 1033 of file golden_section_order.cpp.

◆ to_XML()

tinyxml2::XMLDocument * OpenNN::GoldenSectionOrder::to_XML ( void  ) const

Prints to the screen the order selection parameters, the stopping criteria and other user stuff concerning the golden section order object.

Definition at line 431 of file golden_section_order.cpp.

◆ write_XML()

void OpenNN::GoldenSectionOrder::write_XML ( tinyxml2::XMLPrinter &  file_stream) const

Serializes the golden section object into a XML document of the TinyXML library without keep the DOM tree in memory. See the OpenNN manual for more information about the format of this document.

Definition at line 608 of file golden_section_order.cpp.


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