Skip to content

Commit 59ee92a

Browse files
authored
Update weighted_ebru_koksal.py
1 parent 1e39ffe commit 59ee92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Week02/weighted_ebru_koksal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def weighted_srs(data,n,weights,with_replacement=False):
77
i=random.choices(range(len(pool)),weights=w,k=1)[0] if w else random.randrange(len(pool))
88
res.append(pool.pop(i))
99
if w:w.pop(i)
10-
return res
10+
return res

0 commit comments

Comments
 (0)