コード例 #1
0
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
コード例 #2
0
ファイル: neat_mountain_car.py プロジェクト: arizona95/Brain
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
コード例 #3
0
ファイル: neat_mountain_car.py プロジェクト: ztyzby/torcs
def run(gens, env):
    winner, stats = run_neat(gens, env, 200, config, max_trials=0)
    print("neat_mountain_car done")
    return winner, stats
コード例 #4
0
def run(gens, env):
    winner, stats = run_neat(gens, env, 500, config)
    print("neat_pole_balancing done")
    return winner, stats