Example #1
0
    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())
Example #2
0
    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())
Example #3
0
    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())
Example #4
0
    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())
Example #5
0
    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())
Example #6
0
    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())