Compare commits

...

2 Commits

Author SHA1 Message Date
Brett fc611f3555 reset config 2024-09-03 22:39:09 -04:00
Brett 3a31b2794c s 2024-09-03 22:38:45 -04:00
2 changed files with 5 additions and 5 deletions

View File

@ -37,13 +37,13 @@ std::array<context, 200> training_cases;
blt::gp::prog_config_t config = blt::gp::prog_config_t() blt::gp::prog_config_t config = blt::gp::prog_config_t()
.set_initial_min_tree_size(2) .set_initial_min_tree_size(2)
.set_initial_max_tree_size(6) .set_initial_max_tree_size(6)
.set_elite_count(0) .set_elite_count(200)
.set_crossover_chance(0.9) .set_crossover_chance(0.9)
.set_mutation_chance(0.1) .set_mutation_chance(0.1)
.set_reproduction_chance(0) .set_reproduction_chance(0)
.set_max_generations(50) .set_max_generations(50)
.set_pop_size(1) .set_pop_size(20000)
.set_thread_count(1); .set_thread_count(0);
blt::gp::gp_program program{SEED, config}; blt::gp::gp_program program{SEED, config};

View File

@ -94,7 +94,7 @@ namespace blt::gp
{ {
#ifdef BLT_TRACK_ALLOCATIONS #ifdef BLT_TRACK_ALLOCATIONS
tracker.allocate(bytes); tracker.allocate(bytes);
std::cout << "Hey our aligned allocator allocated " << bytes << " bytes!\n"; // std::cout << "Hey our aligned allocator allocated " << bytes << " bytes!\n";
#endif #endif
return std::aligned_alloc(8, bytes); return std::aligned_alloc(8, bytes);
} }
@ -105,7 +105,7 @@ namespace blt::gp
return; return;
#ifdef BLT_TRACK_ALLOCATIONS #ifdef BLT_TRACK_ALLOCATIONS
tracker.deallocate(bytes); tracker.deallocate(bytes);
std::cout << "[Hey our aligned allocator deallocated " << bytes << " bytes!]\n"; // std::cout << "[Hey our aligned allocator deallocated " << bytes << " bytes!]\n";
#else #else
(void) bytes; (void) bytes;
#endif #endif