Brett 2025-04-17 02:20:33 -04:00
parent 0d299affdb
commit 29d8efe18f
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ macro(compile_options target_name)
sanitizers(${target_name})
endmacro()
project(blt-gp VERSION 0.5.7)
project(blt-gp VERSION 0.5.8)
include(CTest)

@ -1 +1 @@
Subproject commit 6cdfab39cfc1e10fe8fe7a34863963d01620bdb3
Subproject commit 90cf177c57f542ecdd132eaa6af0f1945ce8fe96

View File

@ -66,7 +66,7 @@ bool fitness_function(const tree_t& current_tree, fitness_t& fitness, size_t)
{
BLT_GP_UPDATE_CONTEXT(fitness_case);
auto val = current_tree.get_evaluation_ref<float>(fitness_case);
const auto diff = std::abs(fitness_case.y - val.get().value());
const auto diff = std::abs(fitness_case.y - val.get());
if (diff < value_cutoff)
{
fitness.raw_fitness += diff;