Skip to content

Commit

Permalink
Fix forgotten initialisation of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandezgarcia committed Jun 6, 2024
1 parent 2321aa4 commit 190152c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gflownet/evaluator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def plot(self, x_sampled, kde_pred, kde_true, plot_kwargs, **kwargs):
values are the figures.
"""

fig_kde_pred = fig_kde_true = fig_reward_samples = None
fig_kde_pred = fig_kde_true = fig_reward_samples = fig_samples_topk = None

if hasattr(self.gfn.env, "plot_reward_samples") and x_sampled is not None:
(sample_space_batch, rewards_sample_space) = (
Expand Down

0 comments on commit 190152c

Please sign in to comment.