Exemple #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)
Exemple #2
0
def test4():
    system = GP(terminals, functions, fitness)
    system.init_population()
    return system.run(3)
Exemple #3
0
def test4():
    system = GP(terminals, functions, fitness)
    system.init_population()
    return system.run(3)
Exemple #4
0
def main():
    gp = GP(terminals, functions, fitness, config)
    gp.init_population()
    result = gp.run()
    print_results(result, training_cases)
    return gp
Exemple #5
0
def main():
    gp = GP(terminals, functions, fitness, config)
    gp.init_population()
    result = gp.run()
    print_results(result, training_cases)
    return gp