c794fa99318462b5b04b77cfff27428d85cfb443,tensorforce/contrib/unreal_engine.py,UE4Environment,translate_abstract_actions_to_keys,#UE4Environment#Any#,213

Before Change


                // ret.append((first_key[0].decode(), a[1] * first_key[1]))
                ret.append((first_key[0], a[1] * first_key[1]))

        return ret

After Change


            if isinstance(first_key, (bytes, str)):
                actions.append((first_key, a[1]))
            // axis mapping
            elif isinstance(first_key, tuple):
                // ret.append((first_key[0].decode(), a[1] * first_key[1]))
                axes.append((first_key[0], a[1] * first_key[1]))
            else:
                raise TensorForceError("action_space_desc contains unsupported type for key {}!".format(a[0]))

        return actions, axes

    def discretize_action_space_desc(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: reinforceio/tensorforce
Commit Name: c794fa99318462b5b04b77cfff27428d85cfb443
Time: 2017-12-17
Author: svenmika1977@gmail.com
File Name: tensorforce/contrib/unreal_engine.py
Class Name: UE4Environment
Method Name: translate_abstract_actions_to_keys


Project Name: reinforceio/tensorforce
Commit Name: c849087b1b71c55b2eb9240ae66cca6c8b9896ed
Time: 2017-05-20
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/environments/openai_universe.py
Class Name: OpenAIUniverse
Method Name: actions


Project Name: reinforceio/tensorforce
Commit Name: 3f91c1f276c254fcb39df3fd1d03464366930503
Time: 2017-12-17
Author: svenmika1977@gmail.com
File Name: tensorforce/contrib/unreal_engine.py
Class Name: UE4Environment
Method Name: translate_abstract_actions_to_keys


Project Name: reinforceio/tensorforce
Commit Name: c849087b1b71c55b2eb9240ae66cca6c8b9896ed
Time: 2017-05-20
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/environments/openai_gym.py
Class Name: OpenAIGym
Method Name: actions