def act(self, observation):
    action = (- 1)
    if (np.random.random() < self.epsilon):
        action = np.random.choice(self.q.n_actions)
    else:
        action = np.argmax(self.q.values(observation))
    return action
def act(self, observation):
    action = (- 1)
    if (np.random.random() < self.epsilon):
        action = np.random.choice(self.q.n_actions)
    else:
        action = np.argmax(self.q.values(observation))
    return action