File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4072,17 +4072,16 @@ def check_param_validation(name, estimator_orig):
4072
4072
4073
4073
estimator = clone (estimator_orig )
4074
4074
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.
4077
4076
estimator .set_params (** {param_name : param_with_bad_type })
4078
4077
4079
4078
for method in methods :
4080
4079
with raises (ValueError , match = match , err_msg = err_msg ):
4081
4080
getattr (estimator , method )(X , y )
4082
4081
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.
4086
4085
constraints = estimator_orig ._parameter_constraints [param_name ]
4087
4086
constraints = [make_constraint (constraint ) for constraint in constraints ]
4088
4087
You can’t perform that action at this time.
0 commit comments