Skip to content

Commit 5d3fe46

Browse files
author
FelixAbrahamsson
committed
Fixed missed self reference in RepeatSampler
1 parent b5e49fa commit 5d3fe46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datastream/samplers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def update_example_weight_(self, weights, index):
364364

365365
def sample_proportion(self, proportion):
366366
return RepeatSampler(
367-
sampler.sample_proportion(proportion),
367+
self.sampler.sample_proportion(proportion),
368368
self.length,
369369
self.epoch_bound,
370370
)

0 commit comments

Comments
 (0)