def __init__(self): self.road = roadmaker.fetch_road() self.cars = [] self.population_size = 14 # Has to be an even number self.max_fitness = 0 self.avg_fitness = 0 self.generation = 0
def __init__(self): self.car = BackpropCar() self.road = roadmaker.fetch_road() while 1 + 1 == 2: self.reset_car() self.train2()