llamda.ga.eoh package
Submodules
llamda.ga.eoh.eoh module
- class llamda.ga.eoh.eoh.EOH(config, problem, evaluator, llm_client, output_dir)[source]
Bases:
GeneticAlgorithm[EoHConfig,EohProblem]- Parameters:
config (EoHConfig)
problem (EohProblem)
evaluator (Evaluator)
llm_client (BaseClient)
output_dir (str)
- class llamda.ga.eoh.eoh.EoHConfig(pop_size: int = 10, n_pop: int = 3, operators: list[str] = <factory>, m: int = 2, operator_weights: list[int] = <factory>, exp_use_seed: bool = False, exp_seed_path: str = './seeds/seeds.json', exp_use_continue: bool = False, exp_continue_id: int = 0, exp_continue_path: str = './results/pops/population_generation_0.json')[source]
Bases:
object- Parameters:
llamda.ga.eoh.eoh_evolution module
llamda.ga.eoh.eoh_interface_EC module
- class llamda.ga.eoh.eoh_interface_EC.InterfaceEC(pop_size, m, problem, evaluator, llm_client, output_dir)[source]
Bases:
object- Parameters:
pop_size (int)
m (int)
problem (EohProblem)
evaluator (Evaluator)
llm_client (BaseClient)
output_dir (str)