Skip to content

Commit

Permalink
fix: adjust to latest format
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaljovec committed Mar 25, 2024
1 parent 9bf35cd commit a0d01e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/gflownet/algo/trajectory_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ def construct_batch(self, trajs, cond_info, log_rewards):
return batch

def compute_batch_losses(
self, model: TrajectoryBalanceModel, batch: gd.Batch, num_bootstrap: int = 0 # type: ignore[override]
self,
model: TrajectoryBalanceModel,
batch: gd.Batch,
num_bootstrap: int = 0, # type: ignore[override]
):
"""Compute the losses over trajectories contained in the batch
Expand Down
1 change: 0 additions & 1 deletion src/gflownet/data/qm9.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
class QM9Dataset(Dataset):
def __init__(self, h5_file=None, xyz_file=None, train=True, targets=["gap"], split_seed=142857, ratio=0.9):
if h5_file is not None:

self.hdf = pd.HDFStore(h5_file, "r")
self.df = self.hdf["df"]
self.is_hdf = True
Expand Down

0 comments on commit a0d01e7

Please sign in to comment.