Skip to content

Commit

Permalink
changes score printout. this branch fixes #237, works on #230
Browse files Browse the repository at this point in the history
Former-commit-id: 215953a
  • Loading branch information
lacava committed Mar 26, 2019
1 parent e4ba0a4 commit ad07c47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/feat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad07c47

Please sign in to comment.