Skip to content

Commit 5361c04

Browse files
committed
changed subsample in adapter.py to allow float as an input for the sample size
1 parent 5312c5f commit 5361c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/adapters/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def one_hot(self, keys: str | Sequence[str], num_classes: int):
547547
def random_subsample(self,
548548
keys: str | Sequence[str],
549549
*,
550-
sample_size: int,
550+
sample_size: int | float,
551551
axis: int=-1,
552552
**kwargs,
553553
):

0 commit comments

Comments
 (0)