Something went wrong on our end
-
Martin Beseda authoredMartin Beseda authored
RandomSolution.cpp 609 B
/**
* DESCRIPTION OF THE FILE
*
* @author Michal Kravčenko
* @date 25.2.19 -
*/
#include "RandomSolution.h"
#include "../message.h"
namespace lib4neuro {
RandomSolution::RandomSolution() {
}
RandomSolution::~RandomSolution() {}
void RandomSolution::optimize(lib4neuro::ErrorFunction& ef,
std::ofstream* ofs) {
ef.get_network_instance()->randomize_parameters();
this->optimal_parameters = ef.get_parameters();
COUT_INFO("Producing a random solution... error: " << ef.eval(&this->optimal_parameters) << std::endl);
}
}