7d2a67412daa0abb3ce2339a8f716a4ca51791e4,src/garage/torch/algos/vpg.py,VPG,_compute_objective,#VPG#Any#Any#Any#Any#,419
Before Change
del rewards
log_likelihoods = self.policy.log_likelihood(obs, actions)
return log_likelihoods * advantages
def process_samples(self, paths):
After Change
del rewards
log_likelihoods = self.policy(obs)[0].log_prob(actions)
return log_likelihoods * advantages
def process_samples(self, paths):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/torch/algos/vpg.py
Class Name: VPG
Method Name: _compute_objective
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/torch/algos/trpo.py
Class Name: TRPO
Method Name: _compute_objective
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/torch/algos/ppo.py
Class Name: PPO
Method Name: _compute_objective