Skip to content

Commit 4d5f28b

Browse files
committed
Fix bug in stratified sampling with a remainder.
1 parent c61c97a commit 4d5f28b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ function stratified_map!(f::Function, n_total::Int, strata, args...;
4848
remainder = sample(strata, n_remaining)
4949
for (k, stratum) in enumerate(remainder)
5050
i = n_total - n_remaining + k
51-
for i in idxs
52-
f(i, stratum, args...)
53-
end
51+
f(i, stratum, args...)
5452
end
5553
end
5654
return nothing

0 commit comments

Comments
 (0)