def decode_reward(self, symbol_list): """ Returns the reward decoded from the beginning of the given list of symbols. - `symbol_list`: the symbol list to decode the reward from. """ return util.decode(symbol_list, self.environment.reward_bits())
def decode_observation(self, symbol_list): """ Returns the observation decoded from the given list of symbols. - `symbol_list`: the symbol list to decode the observation from. """ return util.decode(symbol_list, self.environment.observation_bits())
def decode_action(self, symbol_list): """ Returns the action decoded from the beginning of the given list of symbols. - `symbol_list`: the symbol list to decode the action from. """ return util.decode(symbol_list, self.environment.action_bits())
def decode_reward(self, symbol_list): """ Returns the reward decoded from the beginning of the given list of symbols. - `symbol_list`: the symbol list to decode the reward from. (Called `decodeReward` in the C++ version.) """ return util.decode(symbol_list, self.environment.reward_bits())
def decode_observation(self, symbol_list): """ Returns the observation decoded from the given list of symbols. - `symbol_list`: the symbol list to decode the observation from. (Called `decodeObservation` in the C++ version.) """ return util.decode(symbol_list, self.environment.observation_bits())
def decode_action(self, symbol_list): """ Returns the action decoded from the beginning of the given list of symbols. - `symbol_list`: the symbol list to decode the action from. (Called `decodeAction` in the C++ version.) """ return util.decode(symbol_list, self.environment.action_bits())