(self)
return np.array(rl_tuner_ops.make_onehot([note_idx],
                                             self.num_actions)).flatten()
Samle a note uniformly at random.

    Returns:
      random note
Samle a note uniformly at random.
Samle a note uniformly at random .
def get_random_note(self):
    """Samle a note uniformly at random.

    Returns:
      random note
    """
    note_idx = np.random.randint(0, self.num_actions - 1)
    return np.array(rl_tuner_ops.make_onehot([note_idx],
                                             self.num_actions)).flatten()
def get_random_note ( self ) : note_idx = np . random . randint ( 0 , self . num_actions - 1 ) return np . array ( rl_tuner_ops . make_onehot ( [ note_idx ] , self . num_actions ) ) . flatten ( )