8000 Fix inline comments · scikit-learn/scikit-learn@e3f230b · GitHub
[go: up one dir, main page]

Skip to content

Commit e3f230b

Browse files
Fix inline comments
1 parent b75f62c commit e3f230b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sklearn/utils/estimator_checks.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4072,17 +4072,16 @@ def check_param_validation(name, estimator_orig):
40724072

40734073
estimator = clone(estimator_orig)
40744074

4075-
# First, check that the error is raised if param doesn't match any valid
4076-
# type.
4075+
# First, check that the error is raised if param doesn't match any valid type.
40774076
estimator.set_params(**{param_name: param_with_bad_type})
40784077

40794078
for method in methods:
40804079
with raises(ValueError, match=match, err_msg=err_msg):
40814080
getattr(estimator, method)(X, y)
40824081

4083-
# Then, for constraints that are more than a type constraint, check that
4084-
# the error is raised if param does match a valid type but does not match
4085-
# any valid value for this type.
4082+
# Then, for constraints that are more than a type constraint, check that the
4083+
# error is raised if param does match a valid type but does not match any valid
4084+
# value for this type.
40864085
constraints = estimator_orig._parameter_constraints[param_name]
40874086
constraints = [make_constraint(constraint) for constraint in constraints]
40884087

0 commit comments

Comments
 (0)
0