| 56 | // RegularizedEvolution Implementation |
| 57 | |
| 58 | RegularizedEvolution::RegularizedEvolution( |
| 59 | std::string metric_name, |
| 60 | metric_strategy winner_strategy, |
| 61 | std::unique_ptr<MutationStrategy> mutate_algo, |
| 62 | int sample_size) |
| 63 | : m_mutate_algo{std::move(mutate_algo)}, |
| 64 | m_metric_name{std::move(metric_name)}, |
| 65 | m_metric_strategy{std::move(winner_strategy)}, |
| 66 | m_sample_size{std::move(sample_size)} |
| 67 | {} |
| 68 | |
| 69 | RegularizedEvolution::RegularizedEvolution(RegularizedEvolution const& other) |
| 70 | : m_mutate_algo{other.m_mutate_algo->clone()}, |