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 cfe0eae commit 23a1a56Copy full SHA for 23a1a56
sklearn/base.py
@@ -200,11 +200,11 @@ def get_params(self, deep=True):
200
Parameter names mapped to their values.
201
"""
202
out = dict()
203
- # We need deprecation warnings to always be on for this to work.
204
- # This is set in utils/__init__.py but it gets overwritten
205
- # when running under python3 somehow.
206
for key in self._get_param_names():
207
- # catch deprecation warnings
+ # We need deprecation warnings to always be on in order to
+ # catch deprecated param values.
+ # This is set in utils/__init__.py but it gets overwritten
+ # when running under python3 somehow.
208
warnings.simplefilter("always", DeprecationWarning)
209
try:
210
with warnings.catch_warnings(record=True) as w:
0 commit comments