c794fa99318462b5b04b77cfff27428d85cfb443,tensorforce/contrib/unreal_engine.py,UE4Environment,execute,#UE4Environment#Any#,126

Before Change


        // assert 1 <= num_ticks <= 20  // same for num_ticks
        // re-translate incoming action names into keyboard keys for the server
        try:
            if action_mappings is None:
                action_mappings = []
            else:
                action_mappings = self.translate_abstract_actions_to_keys(action_mappings)
            if axis_mappings is None:
                axis_mappings = []
            else:
                axis_mappings = self.translate_abstract_actions_to_keys(axis_mappings)

After Change


        // wait for response (blocks)
        response = self.protocol.recv(self.socket)
        r = response.pop("_reward", 0.0)
        is_terminal = response.pop("_is_terminal", False)

        obs = self.extract_observation(response)
        self.last_observation = obs  // cache last observation
        return obs, is_terminal, r
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

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: execute


Project Name: tryolabs/luminoth
Commit Name: 35999e65a83c8b9f67b833623a5b9ce47af7cc71
Time: 2017-09-19
Author: javirey@gmail.com
File Name: luminoth/utils/training.py
Class Name:
Method Name: get_learning_rate


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: execute


Project Name: has2k1/plotnine
Commit Name: 14538c6714f45c0dbd6c95ff351c272c9cf85701
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_abline.py
Class Name: stat_abline
Method Name: _calculate