Exemplo n.º 1
0
SolutionsError::SolutionsError(const tinyxml2::XMLDocument& solutions_error_document)
 : PerformanceTerm(solutions_error_document)
{
   set_default();

   from_XML(solutions_error_document);
}
Exemplo n.º 2
0
NeuralParametersNorm::NeuralParametersNorm(const tinyxml2::XMLDocument& neural_parameters_norm_document)
 : PerformanceTerm()
{
   set_default();

   from_XML(neural_parameters_norm_document);
}
Exemplo n.º 3
0
OutputsIntegrals::OutputsIntegrals(const tinyxml2::XMLDocument& outputs_integrals_document)
 : PerformanceTerm(outputs_integrals_document)
{
   set_default();

   from_XML(outputs_integrals_document);
}
NeuralParametersNorm::NeuralParametersNorm(TiXmlElement* neural_parameters_norm_element) 
 : PerformanceTerm()
{
   set_default();

   from_XML(neural_parameters_norm_element);
}
Exemplo n.º 5
0
void MathematicalModel::load(const std::string& filename)
{
   std::ostringstream buffer;

   TiXmlDocument document(filename.c_str());

   if(!document.LoadFile())
   {
      buffer << "OpenNN Exception: MathematicalModel class.\n"
             << "void load(const std::string&) method.\n"
             << "Cannot load XML file " << filename << ".\n";

      throw std::logic_error(buffer.str());
   }

   // Mathematical model element
  
   TiXmlElement* mathematical_model_element = document.FirstChildElement();

   if(!mathematical_model_element)
   {
      buffer << "OpenNN Exception: MathematicalModel class.\n"
             << "void load(const std::string&) method.\n"
             << "File " << filename << " is not a valid mathematical model file.\n";

      throw std::logic_error(buffer.str());
   }

   from_XML(mathematical_model_element);
}
Exemplo n.º 6
0
OutputsIntegrals::OutputsIntegrals(TiXmlElement* outputs_integrals_element) 
 : PerformanceTerm(outputs_integrals_element)
{
   set_default();

   from_XML(outputs_integrals_element);
}
Exemplo n.º 7
0
MinkowskiError::MinkowskiError(const tinyxml2::XMLDocument& mean_squared_error_document)
 : ErrorTerm(mean_squared_error_document)
{
   set_default();

   from_XML(mean_squared_error_document);
}
Exemplo n.º 8
0
NeuralParametersNorm::NeuralParametersNorm(const tinyxml2::XMLDocument& neural_parameters_norm_document)
 : RegularizationTerm()
{
   set_default();

   from_XML(neural_parameters_norm_document);
}
Exemplo n.º 9
0
MinkowskiError::MinkowskiError(TiXmlElement* mean_squared_error_element)
 : PerformanceTerm(mean_squared_error_element)
{
   set_default();

   from_XML(mean_squared_error_element);
}
TimeSeriesPredictionTesting::TimeSeriesPredictionTesting(TiXmlElement* time_series_prediction_testing_element)
 : neural_network_pointer(NULL),
   data_set_pointer(NULL)
{
   set_default();

   from_XML(time_series_prediction_testing_element);
}
Exemplo n.º 11
0
RegularizationTerm::RegularizationTerm(const tinyxml2::XMLDocument& performance_term_document)
    : neural_network_pointer(NULL),
      numerical_differentiation_pointer(NULL)
{
    set_default();

    from_XML(performance_term_document);
}
Exemplo n.º 12
0
TestingAnalysis::TestingAnalysis(const tinyxml2::XMLDocument& testing_analysis_document)
 : neural_network_pointer(NULL),
   data_set_pointer(NULL),
   mathematical_model_pointer(NULL)
{
   set_default();

   from_XML(testing_analysis_document);
}
InverseProblemTesting::InverseProblemTesting(TiXmlElement* inverse_problem_testing_element)
 : neural_network_pointer(NULL),
   data_set_pointer(NULL),
   mathematical_model_pointer(NULL)
{
   set_default();

   from_XML(inverse_problem_testing_element);
}
Exemplo n.º 14
0
TestingAnalysis::TestingAnalysis(TiXmlElement* testing_analysis_element)
 : neural_network_pointer(NULL),
   data_set_pointer(NULL),
   mathematical_model_pointer(NULL),
   function_regression_testing_pointer(NULL),
   pattern_recognition_testing_pointer(NULL),
   time_series_prediction_testing_pointer(NULL),
   inverse_problem_testing_pointer(NULL)
{
   set_default();

   from_XML(testing_analysis_element);
}
void KappaCoefficientOptimizationThreshold::load(const std::string& file_name)
{
   set_default();

   tinyxml2::XMLDocument document;

   if(document.LoadFile(file_name.c_str()))
   {
      std::ostringstream buffer;

      buffer << "OpenNN Exception: KappaCoefficientOptimizationThreshold class.\n"
             << "void load(const std::string&) method.\n"
             << "Cannot load XML file " << file_name << ".\n";

      throw std::logic_error(buffer.str());
   }

   from_XML(document);
}
Exemplo n.º 16
0
void SimulatedAnnealingOrder::load(const std::string& file_name)
{
   set_default();

   tinyxml2::XMLDocument document;

   if(document.LoadFile(file_name.c_str()))
   {
      std::ostringstream buffer;

      buffer << "OpenNN Exception: SimulatedAnnealingOrder class.\n"
             << "void load(const std::string&) method.\n"
             << "Cannot load XML file " << file_name << ".\n";

      throw std::logic_error(buffer.str());
   }

   from_XML(document);
}
Exemplo n.º 17
0
void InstancesInformation::set(TiXmlElement* instances_information_element)
{
   set();
   from_XML(instances_information_element);
}
KappaCoefficientOptimizationThreshold::KappaCoefficientOptimizationThreshold(const tinyxml2::XMLDocument& kappa_coefficient_optimization_document)
    : ThresholdSelectionAlgorithm(kappa_coefficient_optimization_document)
{
    from_XML(kappa_coefficient_optimization_document);
}
Exemplo n.º 19
0
TrainingAlgorithm::TrainingAlgorithm(const tinyxml2::XMLDocument& document)
 : performance_functional_pointer(NULL)
{ 
   from_XML(document);
}
TrainingAlgorithm::TrainingAlgorithm(const tinyxml2::XMLDocument& document)
 : loss_index_pointer(NULL)
{ 
   from_XML(document);
}
Exemplo n.º 21
0
void BoundingLayer::set(const tinyxml2::XMLDocument& bounding_layer_document)
{
    set_default();

   from_XML(bounding_layer_document);
}
Exemplo n.º 22
0
MathematicalModel::MathematicalModel(TiXmlElement* mathematical_model_element)
{                
   set_default();

   from_XML(mathematical_model_element);   
}
Exemplo n.º 23
0
void BoundingLayer::set(TiXmlElement* bounding_layer_element)
{
   from_XML(bounding_layer_element);
}
Exemplo n.º 24
0
IncrementalOrder::IncrementalOrder(const tinyxml2::XMLDocument& incremental_order_document)
    : OrderSelectionAlgorithm(incremental_order_document)
{
    from_XML(incremental_order_document);
}
Exemplo n.º 25
0
Outputs::Outputs(const tinyxml2::XMLDocument& outputs_document)
{
   from_XML(outputs_document);
}
Exemplo n.º 26
0
void MissingValues::set(const tinyxml2::XMLDocument& document)
{
    set();

    from_XML(document);
}
Exemplo n.º 27
0
GrowingInputs::GrowingInputs(const tinyxml2::XMLDocument& genetic_algorithm_document)
    : InputsSelectionAlgorithm(genetic_algorithm_document)
{
    from_XML(genetic_algorithm_document);
}
Exemplo n.º 28
0
void ScalingLayer::set(const tinyxml2::XMLDocument& new_scaling_layer_document)
{
    set_default();

   from_XML(new_scaling_layer_document);
}
Exemplo n.º 29
0
SimulatedAnnealingOrder::SimulatedAnnealingOrder(const tinyxml2::XMLDocument& simulated_annealing_order_document)
    : OrderSelectionAlgorithm(simulated_annealing_order_document)
{
    from_XML(simulated_annealing_order_document);
}
Exemplo n.º 30
0
GoldenSectionOrder::GoldenSectionOrder(const tinyxml2::XMLDocument& golden_section_order_document)
    : OrderSelectionAlgorithm(golden_section_order_document)
{
    from_XML(golden_section_order_document);
}