void PerformanceFunctionalTest::test_save(void) { message += "test_save\n"; std::string file_name = "../data/performance_functional.xml"; PerformanceFunctional pf; pf.set_objective_type(PerformanceFunctional::MINKOWSKI_ERROR_OBJECTIVE); pf.set_regularization_type( PerformanceFunctional::NEURAL_PARAMETERS_NORM_REGULARIZATION); pf.save(file_name); }
void PerformanceFunctionalTest::test_to_XML(void) { message += "test_to_XML\n"; PerformanceFunctional pf; pf.set_objective_type(PerformanceFunctional::MINKOWSKI_ERROR_OBJECTIVE); pf.set_regularization_type(PerformanceFunctional::NEURAL_PARAMETERS_NORM_REGULARIZATION); tinyxml2::XMLDocument* document = pf.to_XML(); assert_true(document != NULL, LOG); delete document; }