pypi optuna 5.1.0
v5.1.0

44 minutes ago

Summary

This release adds Python 3.15 support, drops Python 3.9, speeds up plot_contour and plot_pareto_front, and includes many bug fixes.

What's Changed

Breaking Changes

Enhancements

  • Use incremental indexing for GA generation tracking by @yen-0 in #6819
  • Allow Python list for reference_points in NSGAIIISampler by @yen-0 in #6878
  • Add Python 3.15 support by @gen740 in #6897
  • Remove lru_cache from _FanovaTree by @not522 in #6900
  • Speed up plot_contour by replacing O(N^2) list.index lookups with dict lookups by @deep1blue in #6925
  • Speed up GridSampler search-space comparison by @deep1blue in #6931
  • Restore infeasible trial markers in plot_contour matrices by @vicmcorrea in #6934
  • Speed up plot_pareto_front by replacing O(N * |P|) list lookup in _get_non_pareto_front_trials by @deep1blue in #6938
  • Prevent download_artifact from overwriting late-created destinations by @HuaTNA in #6904

Bug Fixes

  • Fix gRPC trial datetime serialization by @gen740 in #6832
  • Propagate exceptions from final parallel trials in Study.optimize by @EmanueleCornaggia in #6842
  • Avoid zero-sum normalization in GP initial-point selection by @tandede in #6817
  • Fix repeated artifact removal in Backoff by @EmanueleCornaggia in #6843
  • Filter feasible trials when selecting best_trial in get_all_study_summaries by @taran-dev4u in #6879
  • Compare integer parameters exactly in enqueue_trial by @aalquwayfili in #6889
  • Avoid All-NaN RuntimeWarning in percentile pruner best-value lookup by @825pranav in #6873
  • Align constraint observations by name in GPSampler by @aswanth-07 in #6887
  • Avoid phantom metadata in upload_artifact for missing sources by @INo-xious in #6880
  • Avoid all-NaN warnings when computing percentile reference by @Ganesh1729-ui in #6893
  • Fix GridSampler crashing on enqueued trials with one grid remaining by @EmanueleCornaggia in #6844
  • Normalize GCS download NotFound to ArtifactNotFound by @CLCK0622 in #6917
  • fix(visualization): skip NaN targets in plot_rank instead of raising ZeroDivisionError by @inchang-ing in #6913
  • Keep infeasible categorical trials in plot_slice by @kokyouu in #6932
  • fix(study): honor an explicitly empty destination name in copy_study by @feiiiiii5 in #6951

Documentation

  • Fix outdated failure and NaN reporting examples in FAQ by @bodapatisaikrishna in #6850
  • Remove obsolete ChainerMNStudy note and fix Sphinx roles in FAQ by @bodapatisaikrishna in #6858
  • Pin sphinx-gallery to fix docs CI error by @y0z in #6863
  • docs: combine visualization backend examples by @gen740 in #6833
  • Updated documentation related to arguments of PatientPruner and WilcoxonPruner by @bidyut18 in #6944
  • Fix imports in the artifact tutorial Boto3ArtifactStore example by @ZainnQureshii in #6953
  • docs: fix duplicated word in hyperopt docstring by @ddlw in #6955

Tests

  • Simplify Study.enqueue_trial skip_if_exists tests by @gen740 in #6822
  • Remove the kaleido dependency for unit tests by @c-bata in #6830
  • Fix EDF figure type narrowing for mypy by @yen-0 in #6906

Code Fixes

  • Fix/ Add TypeVar generic typing to NamedTemporaryFilePool and remove unnecessary cast by @yen-0 in #6838
  • Fix native float output from parameter untransform by @yen-0 in #6869
  • Skip studies without finite observations in plot_edf by @aswanth-07 in #6882
  • Clarify why TPE excludes running trials from the gamma calculation by @kAIto47802 in #6888
  • Remove dead codes in GP by @nabenabe0928 in #6916
  • Refactor acqf selection routine by @nabenabe0928 in #6918

Continuous Integration

  • Fix unused mypy ignore in GP QMC sampling by @c-bata in #6848
  • Fix for mypy error by @y0z in #6851
  • Pinned every GitHub actions to commit SHA by @c-bata in #6852
  • Remove obsolete NumPy 1.x constraint from Windows CI by @taran-dev4u in #6862
  • Annotate RDB model columns with Mapped to fix mypy errors with SQLAlchemy 2.1 by @not522 in #6877
  • Exempt certifi from the dependency cooldown by @gen740 in #6928
  • Add timeout argument for gRPC server by @not522 in #6930
  • Bump reviewdog/action-suggester from 1.24.3 to 1.25.0 by @dependabot[bot] in #6857
  • Bump reviewdog/action-suggester from 1.25.0 to 1.26.1 by @dependabot[bot] in #6866
  • Bump astral-sh/setup-uv from 10.1.0 to 10.2.0 by @dependabot[bot] in #6875
  • Bump astral-sh/setup-uv from 10.2.0 to 10.3.0 by @dependabot[bot] in #6910
  • Bump actions/upload-artifact from 7.0.1 to 7.0.2 by @dependabot[bot] in #6909
  • Bump reviewdog/action-suggester from 1.26.1 to 1.26.2 by @dependabot[bot] in #6908
  • Bump reviewdog/action-suggester from 1.26.2 to 1.26.3 by @dependabot[bot] in #6927
  • Bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 by @dependabot[bot] in #6935
  • Bump astral-sh/setup-uv from 10.3.0 to 10.3.2 by @dependabot[bot] in #6936
  • Bump astral-sh/setup-uv from 10.3.2 to 10.3.3 by @dependabot[bot] in #6947
  • Bump reviewdog/action-suggester from 1.26.3 to 1.27.0 by @dependabot[bot] in #6962

Other

New Contributors

Full Changelog: v5.0.0...v5.1.0

Don't miss a new optuna release

NewReleases is sending notifications on new releases.