messing around with symbolic regression a bit

thread
Brett 2024-08-03 19:59:56 -04:00
parent ec71055078
commit c294b70150
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(blt-gp VERSION 0.0.111)
project(blt-gp VERSION 0.0.112)
include(CTest)

View File

@ -37,7 +37,7 @@ blt::gp::prog_config_t config = blt::gp::prog_config_t()
.set_elite_count(2)
.set_crossover_chance(0.9)
.set_mutation_chance(0.1)
.set_reproduction_chance(0.1)
.set_reproduction_chance(0)
.set_max_generations(50)
.set_pop_size(500)
.set_thread_count(0);
@ -75,7 +75,7 @@ constexpr auto fitness_function = [](blt::gp::tree_t& current_tree, blt::gp::fit
fitness.raw_fitness += value_cutoff;
}
fitness.standardized_fitness = fitness.raw_fitness;
fitness.adjusted_fitness = 1.0 / (1.0 + fitness.standardized_fitness);
fitness.adjusted_fitness = (1.0 / (1.0 + fitness.standardized_fitness));
//BLT_TRACE("fitness: %lf raw: %lf", fitness.adjusted_fitness, fitness.raw_fitness);
};