Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HollowPrincess committed Dec 26, 2023
1 parent 7402cb6 commit b49070d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion batchflow/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ def sample(self, size):
class WeightedSampler(Sampler):
""" Class for implementing `&` (weighting) operation on a number and a `Sampler` instance.
"""
def __init__(self, base, weight):
def __init__(self, base, weight, *args, **kwargs):
super().__init__(*args, **kwargs)
self.bases = [base]
self.weight = weight

Expand Down

0 comments on commit b49070d

Please sign in to comment.