Compare commits

..

No commits in common. "fc611f355564f9cd397ca3139419d9f3b1ed88b2" and "47b3821b0e020e77d0fbbd5c1e1367c7e59b4898" have entirely different histories.

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(200) .set_elite_count(0)
.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(20000) .set_pop_size(1)
.set_thread_count(0); .set_thread_count(1);
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