def pure2mixed(num_actions, action):
 mixed_action = np.zeros(num_actions)
 mixed_action[action] = 1
 return mixed_action

def pure2mixed ( num_actions , action ) : mixed_action = np . zeros ( num_actions ) mixed_action [ action ] = 1 return mixed_action
convert a pure action to the corresponding mixed action .