Skip to content

Commit

Permalink
Updated batches_per_epoch method
Browse files Browse the repository at this point in the history
  • Loading branch information
jsschreck committed Dec 20, 2024
1 parent 3452571 commit d67b2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credit/datasets/era5_multistep_batcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def set_epoch(self, epoch):
self.initialize_batch()

def batches_per_epoch(self):
return math.ceil((self.batch_indices) / self.batch_size)
return math.ceil(len(self.batch_indices) / self.batch_size)

def __getitem__(self, _):
"""
Expand Down

0 comments on commit d67b2a4

Please sign in to comment.