예제 #1
0
def test_gp_mut(generations=20):
    data_path = Path('./containerfs/tmp/cetdl1772small.dat')
    training_data = parse_data(data_path)

    gpobj = GP(POP_SIZE, training_data, mutation_method='branch_replacement')
    gpobj.run(generations)
예제 #2
0
파일: test.py 프로젝트: Blekwave/GP
def test4():
    system = GP(terminals, functions, fitness)
    system.init_population()
    return system.run(3)
예제 #3
0
def test4():
    system = GP(terminals, functions, fitness)
    system.init_population()
    return system.run(3)
예제 #4
0
파일: main.py 프로젝트: Hybbon/GP
def main():
    gp = GP(terminals, functions, fitness, config)
    gp.init_population()
    result = gp.run()
    print_results(result, training_cases)
    return gp
예제 #5
0
파일: main.py 프로젝트: Blekwave/GP
def main():
    gp = GP(terminals, functions, fitness, config)
    gp.init_population()
    result = gp.run()
    print_results(result, training_cases)
    return gp