1955745230c9f267613ebae9c4febd6fdcaa08cf,ml/rl/training/continuous_action_dqn_predictor.py,ContinuousActionDQNPredictor,predict,#ContinuousActionDQNPredictor#Any#Any#,22

Before Change


        for name, value in actions.items():
            workspace.FeedBlob(name, np.atleast_1d(value).astype(np.float32))
        workspace.RunNet(self._net)
        result = {"Q": workspace.FetchBlob(self._output_blobs[0])}
        workspace.SwitchWorkspace(previous_workspace)
        return result

    def get_predictor_export_meta(self):

After Change


        

        examples = []
        for i in range(len(states)):
            examples.append({**states[i], **actions[i]})
        return RLPredictor.predict(self, examples)

    def get_predictor_export_meta(self):
        return PredictorExportMeta(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/Horizon
Commit Name: 1955745230c9f267613ebae9c4febd6fdcaa08cf
Time: 2018-01-08
Author: jjg@fb.com
File Name: ml/rl/training/continuous_action_dqn_predictor.py
Class Name: ContinuousActionDQNPredictor
Method Name: predict


Project Name: facebookresearch/Horizon
Commit Name: 45499cc575d9e555fd17605104cc2452698ecbad
Time: 2018-10-30
Author: jjg@fb.com
File Name: ml/rl/test/gym/gym_predictor.py
Class Name: GymDQNPredictor
Method Name: predict


Project Name: facebookresearch/Horizon
Commit Name: 45499cc575d9e555fd17605104cc2452698ecbad
Time: 2018-10-30
Author: jjg@fb.com
File Name: ml/rl/test/gym/gym_predictor.py
Class Name: GymDQNPredictor
Method Name: policy