def run(gens, env): """ Create the population and run the XOR task by providing eval_fitness as the fitness function. Returns the winning genome and the statistics of the run. """ winner, stats = run_neat(gens, env, 500, CONFIG) print("neat_pole_balancing done") return winner, stats
def run(gens, env): """ Run the pole balancing task using the Gym environment Returns the winning genome and the statistics of the run. """ winner, stats = run_neat(gens, env, 200, CONFIG, max_trials=0) print("neat_mountain_car done") return winner, stats
def run(gens, env): winner, stats = run_neat(gens, env, 200, config, max_trials=0) print("neat_mountain_car done") return winner, stats
def run(gens, env): winner, stats = run_neat(gens, env, 500, config) print("neat_pole_balancing done") return winner, stats