From 616f8a2827991090dcb8c9fb448570b4290270b4 Mon Sep 17 00:00:00 2001 From: gAldeia Date: Fri, 13 Sep 2024 19:03:46 -0300 Subject: [PATCH] Calculating validation score for log stats --- src/eval/evaluation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eval/evaluation.cpp b/src/eval/evaluation.cpp index 2e2dcbe8..2ba32ab6 100644 --- a/src/eval/evaluation.cpp +++ b/src/eval/evaluation.cpp @@ -83,7 +83,7 @@ void Evaluation::assign_fit(Individual& ind, const Dataset& data, for (const auto& n : ind.get_objectives()) { if (n.compare(params.scorer)==0) - values.push_back(f_v); // f_v == f if `val` is false + values.push_back(val ? f_v : f); else if (n.compare("complexity")==0) values.push_back(ind.get_complexity()); else if (n.compare("linear_complexity")==0)