Compare commits
2 Commits
47b3821b0e
...
fc611f3555
Author | SHA1 | Date |
---|---|---|
Brett | fc611f3555 | |
Brett | 3a31b2794c |
|
@ -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};
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue