ee543a8fa004e6d265ce2270d2e0f3e9291aa80c,src/garage/torch/algos/ddpg.py,DDPG,train_once,#DDPG#Any#Any#,134
Before Change
tabular.record("QFunction/MaxY", np.max(self._epoch_ys))
tabular.record("QFunction/AverageAbsY",
np.mean(np.abs(self._epoch_ys)))
tabular.record("AverageSuccessRate",
np.mean(self._success_history))
if not self.smooth_return:
self._episode_rewards = []
self._episode_policy_losses = []
After Change
if self._episode_rewards:
last_average_return = np.mean(self._episode_rewards)
if self._success_history:
if itr % self.steps_per_epoch == 0 and self._buffer_prefilled:
avg_success_rate = np.mean(self._success_history)
for _ in range(self.n_train_steps):
if self._buffer_prefilled:
// pylint: disable=fixme
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: rlworkgroup/garage
Commit Name: ee543a8fa004e6d265ce2270d2e0f3e9291aa80c
Time: 2020-05-28
Author: 44849486+maliesa96@users.noreply.github.com
File Name: src/garage/torch/algos/ddpg.py
Class Name: DDPG
Method Name: train_once
Project Name: nipy/dipy
Commit Name: c2cfaf314a381e520883eba2d965cd93fd5572e0
Time: 2019-07-21
Author: girard.gabriel@gmail.com
File Name: doc/examples/tracking_bootstrap_peaks.py
Class Name:
Method Name:
Project Name: nipy/dipy
Commit Name: aac7b54c8d6957786a9aa70e896cef10fe0ab9fe
Time: 2019-07-21
Author: girard.gabriel@gmail.com
File Name: doc/examples/tracking_pft.py
Class Name:
Method Name:
Project Name: rlworkgroup/garage
Commit Name: ee543a8fa004e6d265ce2270d2e0f3e9291aa80c
Time: 2020-05-28
Author: 44849486+maliesa96@users.noreply.github.com
File Name: src/garage/tf/algos/ddpg.py
Class Name: DDPG
Method Name: train_once