Exemplo n.º 1
0
}

# Input hyperparametres here
chosen_map = 'House'
algo = algorithms['A*']  # Choose which planner
ani = animations['Fast']  # Choose animation speed
debug = debug['High']  # Choose debug level
training_algo = trained_alg[
    args.
    model]  # Chooses the algorithm to train, either CAE, BasicLSTMModule,LSTMCAEModel
nbr_ex = args.num_maps  # Number of maps generated
show_sample_map = False  # shows 5 samples
gen_start = True
train_start = True
sim_start = False
config.generator_house_expo = False
analyzer_start = False
config.generator_size = 64  # Change the size of the maps generated

# Cache
config.clear_cache = True

# Generator
mp = maps[chosen_map]
# Chooses map for generation

# Simulator
config.load_simulator = sim_start
config.simulator_graphics = False
config.simulator_initial_map = mp
config.simulator_algorithm_type, config.simulator_testing_type, config.simulator_algorithm_parameters = algo
Exemplo n.º 2
0
algorithms = {
    "A*": (AStar, AStarTesting, ([], {})),
}

#Input hyperparametres here
chosen_map = 'House'
algo = algorithms['A*']  #Choose which planner
ani = animations['Fast']  #Choose animation speed
debug = debug['High']  #Choose debug level
#training_algo = CombinedOnlineLSTM #Chooses the algorithm to train, either CAE, BasicLSTMModule,LSTMCAEModel
nbr_ex = 100  #Number of maps generated
show_sample_map = False  #shows 5 samples
gen_start = True
train_start = False
sim_start = False
config.generator_house_expo = True
analyzer_start = False
config.generator_size = 64  # Change the size of the maps generated

#Cache
config.clear_cache = True

#Generator
mp = maps[chosen_map]
#Chooses map for generation

#Simulator
config.load_simulator = sim_start
config.simulator_graphics = True
# config.simulator_initial_map, config.simulator_grid_display = mp
# config.simulator_algorithm_type, config.simulator_testing_type, config.simulator_algorithm_parameters = algo