8dcbf002d0058939802920c11f74791708838791,ml/rl/training/ddpg_predictor.py,DDPGPredictor,predict_q_value,#DDPGPredictor#Any#Any#,31
Before Change
for k, v in actions[i].items():
action[k - len(state)] = v
examples.append((state, action))
output = [self.critic(example[0], example[1]) for example in examples]
return output
@classmethod
def export_actor(cls, trainer):
After Change
for k, v in actions[i].items():
action[k - len(state)] = v
action_list.append(action)
output = self.critic(
Variable(torch.from_numpy(np.array(state_list))),
Variable(torch.from_numpy(np.array(action_list)))
)
return output.data.numpy()
@classmethod
def export_actor(cls, trainer):
return DDPGPredictor(trainer)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: facebookresearch/Horizon
Commit Name: 8dcbf002d0058939802920c11f74791708838791
Time: 2018-04-06
Author: edoardoc@fb.com
File Name: ml/rl/training/ddpg_predictor.py
Class Name: DDPGPredictor
Method Name: predict_q_value
Project Name: kymatio/kymatio
Commit Name: a521091d429094d8b7667fa5dc388e11f5ac6667
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: examples/1d/plot_synthetic.py
Class Name:
Method Name:
Project Name: tyarkoni/pliers
Commit Name: 9f53f2e790fba4a4411224e6255748a45099083a
Time: 2021-01-05
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: BertSequenceEncodingExtractor
Method Name: _postprocess
Project Name: facebookresearch/Horizon
Commit Name: 8dcbf002d0058939802920c11f74791708838791
Time: 2018-04-06
Author: edoardoc@fb.com
File Name: ml/rl/training/ddpg_predictor.py
Class Name: DDPGPredictor
Method Name: predict_action