-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
OptunaSearchCV using deprecated fit_params rather than params #5206
Copy link
Copy link
Closed
optuna/optuna-integration
#66Labels
code-fixChange that does not change the behavior, such as code refactoring.Change that does not change the behavior, such as code refactoring.
Description
Expected behavior
OptunaSearchCV should call params as fit_params is deprecated in sklearn 1.4.0
Environment
- Optuna version: 3.5.0
- Python version: 3.12.1
- OS:
- (Optional) Other libraries and their versions: Scikit-learn 1.4.0
Error messages, stack traces, or logs
warnings.warn(/Users/adit/miniforge3/envs/bench_cp/lib/python3.12/sitepackages/sklearn/model_selection/_validation.py:73: FutureWarning: `fit_params` is deprecated and will be removed in version 1.6. Pass parameters via `params` instead.Steps to reproduce
cv = StratifiedKFold(n_splits=5, shuffle=True, random_state=42)
optuna_search = OptunaSearchCV(clf, optuna_params, cv=cv, verbose=3, scoring='roc_auc', n_jobs=-1)
optuna_search.fit(X, y)Additional context (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
code-fixChange that does not change the behavior, such as code refactoring.Change that does not change the behavior, such as code refactoring.