Skip to content

Commit 49442f5

Browse files
committed
iter
1 parent db15956 commit 49442f5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

imblearn/base.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,18 @@ def _identity(X, y):
141141

142142

143143
def is_sampler(estimator):
144-
"""Return True if the given estimator is a sampler, False otherwise."""
144+
"""Return True if the given estimator is a sampler, False otherwise.
145+
146+
Parameters
147+
----------
148+
estimator : object
149+
Estimator to test.
150+
151+
Returns
152+
-------
153+
is_sampler : bool
154+
True if estimator is a sampler, otherwise False.
155+
"""
145156
if estimator._estimator_type == "sampler":
146157
return True
147158
return False

0 commit comments

Comments
 (0)