Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump optuna from 4.0.0 to 4.1.0 #1771

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 12, 2024

Bumps optuna from 4.0.0 to 4.1.0.

Release notes

Sourced from optuna's releases.

v4.1.0

This is the release note of v4.1.0. Highlights of this release include:

  • 🤖 AutoSampler: Automatic Selection of Optimization Algorithms
  • 🚀 More scalable RDB Storage Backend
  • 🧑‍💻 Five New Algorithms in OptunaHub (MO-CMA-ES, MOEA/D, etc.)
  • 🐍 Support Python 3.13

The updated list of tested and supported Python releases is as follows:

Highlights

AutoSampler: Automatic Selection of Optimization Algorithms

AutoSampler automatically selects a sampler from those implemented in Optuna, depending on the situation. Using AutoSampler, as in the code example below, users can achieve optimization performance equal to or better than Optuna's default without being aware of which optimization algorithm to use.

$ pip install optunahub cmaes torch scipy
import optuna
import optunahub
auto_sampler_module = optunahub.load_module("samplers/auto_sampler")
study = optuna.create_study(sampler=auto_sampler_module.AutoSampler())

See the Medium blog post for details.

Enhanced RDB Storage Backend

This release incorporates comprehensive performance tuning on Optuna’s RDBStorage, leading to significant performance improvements. The table below shows the comparison results of execution times between versions 4.0 and 4.1.

# trials v4.0.0 v4.1.0 Diff
1000 72.461 sec (±1.026) 59.706 sec (±1.216) -17.60%
10000 1153.690 sec (±91.311) 664.830 sec (±9.951) -42.37%
50000 12118.413 sec (±254.870) 4435.961 sec (±190.582) -63.39%

For fair comparison, all experiments were repeated 10 times, and the mean execution time was compared. Additional detailed benchmark settings include the following:

  • Objective Function: Each trial consists of 10 parameters and 10 user attributes
  • Storage: MySQL 8.0 (with PyMySQL)
  • Sampler: RandomSampler
  • Execution Environment: Kubernetes Pod with 5 cpus and 8Gi RAM

... (truncated)

Commits
  • f8e1e6d Merge pull request #5751 from c-bata/bump-up-to-v4.1.0
  • 604d45e Bump the version up to v4.1.0
  • d9327ca Merge pull request #5741 from porink0424/fix/introduce-upsert-in-set_trial_sy...
  • 2af7c61 Resolve a small linting problem
  • d834afb Merge pull request #5745 from y0z/feature/update-docs
  • d44be32 Merge pull request #5744 from nzw0301/update-actions/upload-artifact
  • 5d678de Merge upstream
  • 4689713 Add link to the autosampler article
  • 8b648e9 Update docs/source/reference/samplers/index.rst
  • 3eadc92 Add information about AutoSampler to the docs.
  • Additional commits viewable in compare view

Dependabot compatibility score

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Summary by Sourcery

Build:

  • Bump Optuna dependency from version 4.0.0 to 4.1.0.

Bumps [optuna](https://github.com/optuna/optuna) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/optuna/optuna/releases)
- [Commits](optuna/optuna@v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: optuna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the Security Urgent because related to security label Nov 12, 2024
@dependabot dependabot bot requested a review from lisphilar November 12, 2024 20:28
Copy link
Contributor

sourcery-ai bot commented Nov 12, 2024

Reviewer's Guide by Sourcery

This PR updates the Optuna dependency from version 4.0.0 to 4.1.0. The new version introduces significant improvements including an AutoSampler for automatic algorithm selection, enhanced RDB storage performance, and support for Python 3.13.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Dependency version update in package configuration
  • Update Optuna version from 4.0.0 to 4.1.0
  • Add support for Python 3.13
  • Improve RDB storage performance by up to 63%
  • Add new AutoSampler feature for automatic optimization algorithm selection
poetry.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@lisphilar lisphilar added this to the Release 3.1.3 milestone Nov 13, 2024
@lisphilar lisphilar merged commit 9bc6d61 into main Nov 13, 2024
19 of 23 checks passed
@delete-merged-branch delete-merged-branch bot deleted the dependabot/pip/optuna-4.1.0 branch November 13, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Security Urgent because related to security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant