Skip to content

Commit 80f3f24

Browse files
committed
iter
1 parent 1d547af commit 80f3f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/miscellaneous.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ to retain the 10 first elements of the array ``X`` and ``y``::
2626
... weights=[0.01, 0.05, 0.94],
2727
... class_sep=0.8, random_state=0)
2828
>>> def func(X, y):
29-
... return X[:10], y[10:]
29+
... return X[:10], y[:10]
3030
>>> sampler = FunctionSampler(func=func)
3131
>>> X_res, y_res = sampler.fit_sample(X, y)
3232
>>> np.all(X_res == X[:10])

0 commit comments

Comments
 (0)