8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89e0735 commit 536b26aCopy full SHA for 536b26a
sklearn/tests/test_common.py
@@ -222,7 +222,6 @@ def test_transformer_n_iter():
222
else:
223
yield check_transformer_n_iter, name, estimator
224
225
-
226
def test_get_params_invariance():
227
# Test for estimators that support get_params, that
228
# get_params(deep=False) is a subset of get_params(deep=True)
@@ -232,8 +231,8 @@ def test_get_params_invariance():
232
231
include_other=True)
233
for name, Estimator in estimators:
234
if hasattr(Estimator, 'get_params'):
235
- # The ProjectedGradientNMF class is deprecated
236
- if issubclass(Estimator, ProjectedGradientNMF):
+ # If class is deprecated, ignore deprecated warnings
+ if hasattr(Estimator.__init__, "deprecated_original"):
237
with ignore_warnings():
238
yield check_get_params_invariance, name, Estimator
239
0 commit comments