We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db15956 commit 49442f5Copy full SHA for 49442f5
imblearn/base.py
@@ -141,7 +141,18 @@ def _identity(X, y):
141
142
143
def is_sampler(estimator):
144
- """Return True if the given estimator is a sampler, False otherwise."""
+ """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
+ """
156
if estimator._estimator_type == "sampler":
157
return True
158
return False
0 commit comments