Skip to content

Commit 23a1a56

Browse files
committed
Comment change
1 parent cfe0eae commit 23a1a56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ def get_params(self, deep=True):
200200
Parameter names mapped to their values.
201201
"""
202202
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.
206203
for key in self._get_param_names():
207-
# catch deprecation warnings
204+
# We need deprecation warnings to always be on in order to
205+
# catch deprecated param values.
206+
# This is set in utils/__init__.py but it gets overwritten
207+
# when running under python3 somehow.
208208
warnings.simplefilter("always", DeprecationWarning)
209209
try:
210210
with warnings.catch_warnings(record=True) as w:

0 commit comments

Comments
 (0)