Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bfclarke committed Sep 26, 2023
1 parent 7254433 commit 40c4efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeprvat/deeprvat/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def __getitem__(self, index):
start_idx = index * self.batch_size
end_idx = min(self.total_samples, start_idx + self.batch_size)
batch_samples = self.sample_order.iloc[start_idx:end_idx]
samples_by_pheno = batch_samples.groupby("phenotype")
samples_by_pheno = batch_samples.groupby("phenotype", observed=True)

result = dict()
for pheno, df in samples_by_pheno:
Expand Down

0 comments on commit 40c4efa

Please sign in to comment.