Reinforcement Learning, Ciencia De Dados, Data Science, Machine Learning.
= m.shape[0] height = m.shape[1] x_pos = [x for x in np.arange(0.5,width,1)]*height y_pos = np.concatenate([np.repeat(x,width) for x in np.arange(0.5,height, 1)]) #mapeia ações em incrementos para as setas xdir_map = {0: -1, 1:0, 2: 1, 3: 0} ydir_map = {0:0, 1:1, 2:0, 3:-1} x_direct = [xdir_map[x]