-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Open
Labels
Description
Goal
Ideally, this issue helps to sort out an API.
Describe the workflow you want to enable
I'd like to be able to switch on/off:
- Parameter validation in
fit
- Input array validation in
fit
andpredict
- All other validation steps in
fit
andpredict
(e.g.check_is_fitted
)
Something like
model = RandomForestRegressor(validate_params=False)
model.fit(validate_input=False)
model.predict(validated_input=False)
Note that some estimators like Lasso
already support check_input
in fit
.
The main reason to do so is improved performance.
Additional context
Related issues and PRs are #16653, #20657, #21578 (in particular #21578 (comment))
Related discussions: #21810
eangius