We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f3edb commit cf29655Copy full SHA for cf29655
src/reward_preprocessing/interpret.py
@@ -305,10 +305,11 @@ def interpret(
305
plt.tight_layout()
306
307
if wandb_logging:
308
- # Take the matplotlib plot containing all visualizations and log it as a single
309
- # image in wandb.
+ # Take the matplotlib plot containing all visualizations and log it as a
+ # single image in wandb.
310
# We do this, so we have both the individual feature visualizations (logged
311
- # above) in case we need them and the overview plot, which is a bit more useful.
+ # above) in case we need them and the overview plot, which is a bit more
312
+ # useful.
313
img_buf = io.BytesIO()
314
plt.savefig(img_buf, format="png")
315
full_plot_img = PIL.Image.open(img_buf)
0 commit comments