From ad07c478b7173adc07bbd6c8889b9cd503f07055 Mon Sep 17 00:00:00 2001 From: lacava Date: Tue, 26 Mar 2019 11:29:17 -0400 Subject: [PATCH] changes score printout. this branch fixes #237, works on #230 Former-commit-id: 215953a410101fb5e787710a784cb8f7b3c4da8d --- src/feat.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/feat.cc b/src/feat.cc index 81f35975b..b522c3aec 100755 --- a/src/feat.cc +++ b/src/feat.cc @@ -534,11 +534,13 @@ void Feat::fit(MatrixXf& X, VectorXf& y, p_eval->fitness(final_pop, *d.v, F_v, params, false, true); // print validation scores - for (const auto& ind : final_pop) + if (params.verbosity > 2) { - cout << ind.eqn << "; score: " << ind.fitness_v << "\n"; + string scores = ""; + for (const auto& ind : final_pop) + scores += ind.eqn + "; score: " + std::to_string(ind.fitness_v) + "\n"; + logger.log(scores,3); } - update_best(d,true); // get the best validation model } else