Skip to content

Update optuna requirement from <5 to <6 - #248

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/optuna-lt-6
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/optuna-lt-6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 14, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on optuna to permit the latest version.

Release notes

Sourced from optuna's releases.

v5.0.0

This is the release note for v5.0.0.

Highlights

Major Enhancements to the Default Sampler

Optuna v5.0 introduces the first major update to its default sampler configuration since v1.5. For single-objective optimization, TPESampler now enables multivariate TPE (#6746) and the constant liar strategy by default (#6738), together with enhanced bandwidth computation (Watanabe 2023). For multi-objective optimization, TPESampler replaces NSGAIISampler as the default sampler (#6766). These settings were selected through comprehensive benchmarking to improve optimization performance.

New Core APIs for Constrained Optimization

Constrained optimization is now represented directly in Optuna’s core Trial API. Constraint values can be set inside the objective function using trial.set_constraint() and retrieved through trial.constraints, providing a consistent interface across supported samplers. Accordingly, the sampler-specific constraints_func arguments are now deprecated. (#6736, #6754, #6773)

PED-ANOVA Becomes the Default Parameter Importance Evaluator

Optuna v5.0 makes PedAnovaImportanceEvaluator the default evaluator used by optuna.importance.get_param_importances(), replacing f-ANOVA. PED-ANOVA computes parameter importances substantially faster, works with Optuna’s standard dependencies, and now supports conditional search spaces and multi-objective studies. The conditional extension, Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces, was accepted at KDD 2026. (#6682, #6728, #6748)

Improved Parallel Optimization with GPSampler

GPSampler, now a stable API in Optuna v5.0, introduces Monte Carlo-based q-batch acquisition functions that account for trials currently under evaluation. Rather than assigning each running trial a single heuristic pseudo-value, these acquisition functions integrate over possible outcomes sampled from the Gaussian process posterior, allowing predictive uncertainty to inform subsequent suggestions.

The new acquisition functions cover all four major problem settings: qLogEI for unconstrained single-objective optimization, qLogCEI for constrained single-objective optimization, qLogEHVI for unconstrained multi-objective optimization, and qLogCEHVI for constrained multi-objective optimization. This provides a more principled approach to parallel Bayesian optimization across the problem settings supported by GPSampler. (#6715, #6640, #6744, #6792, #6804)

Breaking Changes

  • Remove optuna.multi_objective module (#6686)
  • Remove deprecated integration wrappers for AllenNLP, Chainer, and MXNet (#6693)
  • Stabilize GPSampler (#6715)
  • Enable constant_liar by default (#6738)
  • Support categorical parameters in QMCSampler (#6742, thanks @​saivedant169!)
  • Enable multivariate by default in TPESampler (#6746)
  • Remove deprecated positional-arg compatibility from study and trial APIs (#6747, thanks @​yen-0!)
  • Make PedAnovaImportanceEvaluator the default importance evaluator (#6748)
  • Make TPESampler the default sampler for multi-objective optimization (#6766)
  • Deprecate constraints_func (#6773)
  • Change to treat cases without constraints as feasible (#6774)
  • Normalize trial timestamps to UTC in RDBStorage and JournalStorage (#6776)
  • Remove axis_order argument from plot_pareto_front (#6781)
  • Remove system_attrs from StudySummary (#6782)
  • Remove categorical_distance_func from TPESampler (#6783)
  • Remove deprecated modules (optuna/optuna-integration#293)
  • Remove MXNetPruningCallback (optuna/optuna-integration#294)
  • Use constraints property in BoTorchSampler (optuna/optuna-integration#306)
  • Remove set_system_attr and system_attrs from TorchDistributedTrial (optuna/optuna-integration#309)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [optuna](https://github.com/optuna/optuna) to permit the latest version.
- [Release notes](https://github.com/optuna/optuna/releases)
- [Commits](optuna/optuna@v0.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: optuna
  dependency-version: 5.0.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants