Artificial Intelligence, Machine Learning, Data Science, Reinforcement Learning, OpenAI.
value_function = value_network.predict(np.array([state]),verbose=0)[0] if np.random.rand()>epsilon: action = np.argmax(value_function) else: action = np.random.choice(num_actions) next_state, reward, done, _ = env.step(action) done = 1 if done else 0