def one_hot_action(action, size=19):
 categorical = np.zeros((size, size))
 categorical[action] = 1
 return categorical

def one_hot_action ( action , size = 19 ) : categorical = np . zeros ( ( size , size ) ) categorical [ action ] = 1 return categorical
convert an action into a size x size array of zeros with a 1 at x .