edd80ff9c99783868de91ef14aeceb0be1dbb090,ml/rl/test/gym/open_ai_gym_environment.py,OpenAIGymEnvironment,policy,#OpenAIGymEnvironment#Any#Any#Any#,159

Before Change


                    if best_action is None or best_score < action_score:
                        best_action = action_key
                        best_score = action_score
                action_idx = normed_action_keys.index(best_action)
        action[action_idx] = 1.0
        return action

    def insert_into_memory(

After Change


                    states.append(next_state_dict[0])
                    actions.append({action_key: 1})
                action_idx = predictor.policy(states, actions)[1]
                action_to_take = list(actions[action_idx].keys())
                action_idx = normed_action_keys.index(action_to_take[0])
        action[action_idx] = 1.0
        return action

    def insert_into_memory(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: facebookresearch/Horizon
Commit Name: edd80ff9c99783868de91ef14aeceb0be1dbb090
Time: 2018-03-29
Author: edoardoc@fb.com
File Name: ml/rl/test/gym/open_ai_gym_environment.py
Class Name: OpenAIGymEnvironment
Method Name: policy


Project Name: geomstats/geomstats
Commit Name: bcb31499b3bab0b31e7f45c38e77571fa6ccb0c1
Time: 2020-05-06
Author: ninamio78@gmail.com
File Name: geomstats/_backend/tensorflow/__init__.py
Class Name:
Method Name: convert_to_wider_dtype


Project Name: geomstats/geomstats
Commit Name: 6a534c44a8af152d38d833c370695e54ff1dfa20
Time: 2020-05-06
Author: ninamio78@gmail.com
File Name: geomstats/_backend/numpy/__init__.py
Class Name:
Method Name: convert_to_wider_dtype