Reinforcement Learning, Artificial Intelligence, Machine Learning, Data Science, Statistics.
= [np.array([0, -1]), np.array([-1, 0]), np.array([0, 1]), np.array([1, 0])] ACTIONS_FIGS=[ '←', '↑', '→', '↓'] ACTION_PROB = 0.25 Step function def step(state, action): if state == A_POS: return A_PRIME_POS, 10 if state == B_POS: return B_PRIME_POS, 5 next_state = (np.array(state) +