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

Before Change


        previous_workspace = workspace.CurrentWorkspace()
        workspace.SwitchWorkspace(self._workspace_id)
        for name, value in states.items():
            workspace.FeedBlob(name, np.atleast_1d(value).astype(np.float32))
        for name, value in actions.items():
            workspace.FeedBlob(name, np.atleast_1d(value).astype(np.float32))
        workspace.RunNet(self._net)

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(
            self._net, self._parameters, self._input_blobs, self._output_blobs
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: 2a548989f90026395d3d47ccf15ac331728c64bf
Time: 2019-06-22
Author: jjg@fb.com
File Name: ml/rl/test/gym/gym_evaluator.py
Class Name: GymEvaluator
Method Name: evaluate_reward_value


Project Name: pyannote/pyannote-audio
Commit Name: 341ba5700baf52c5a45da86b9b207a1aeec4529b
Time: 2017-05-20
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/base_autograd.py
Class Name: SequenceEmbeddingAutograd
Method Name: embed