a41f2ff4c1437f0b61e76265c31bdec71be0556f,softlearning/algorithms/sac.py,SAC,get_diagnostics,#SAC#Any#Any#Any#Any#,358
Before Change
self.global_step),
feed_dict))
diagnostics = OrderedDict({
"Q-avg": np.mean(Q_values),
"Q-std": np.std(Q_values),
"Q_loss": np.mean(Q_losses),
"policy_loss": np.mean(policy_losses),
"alpha": alpha,
})
policy_diagnostics = self._policy.get_diagnostics(
batch["observations"])
diagnostics.update({
f"policy/{key}": value
for key, value in policy_diagnostics.items()
})
if self._plotter:
self._plotter.draw()
After Change
diagnostics.update(OrderedDict([
(f"policy/{key}", value)
for key, value in
self._policy.get_diagnostics(batch["observations"]).items()
]))
if self._plotter:
self._plotter.draw()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: rail-berkeley/softlearning
Commit Name: a41f2ff4c1437f0b61e76265c31bdec71be0556f
Time: 2019-04-26
Author: hartikainen@berkeley.edu
File Name: softlearning/algorithms/sac.py
Class Name: SAC
Method Name: get_diagnostics
Project Name: rail-berkeley/softlearning
Commit Name: a41f2ff4c1437f0b61e76265c31bdec71be0556f
Time: 2019-04-26
Author: hartikainen@berkeley.edu
File Name: softlearning/algorithms/sql.py
Class Name: SQL
Method Name: get_diagnostics
Project Name: matplotlib/matplotlib
Commit Name: 9c7f926d6d70a994c3710ce570bb9807519ef090
Time: 2019-01-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_agg.py
Class Name: FigureCanvasAgg
Method Name: print_png