You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Parameter '{init_param.name}' of estimator '{Estimator.__name__}' is of type {type(init_param.default).__name__} which is not allowed. "
2599
+
f"All init parameters have to be immutable to make cloning possible. "
2600
+
f"Therefore we restrict the set of legal types to {set(type.__name__fortypeinallowed_types)}."
2601
+
)
2598
2602
ifinit_param.namenotinparams.keys():
2599
2603
# deprecated parameter, not in get_params
2600
-
assertinit_param.defaultisNone
2604
+
assertinit_param.defaultisNone, f"Estimator parameter '{init_param.name}' of estimator '{Estimator.__name__}' is not returned by get_params. If it is deprecated, set its default value to None."
0 commit comments