Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into remove-catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
Alnusjaponica committed May 9, 2023
2 parents 0845498 + 76532ac commit 5fa1b5f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ jobs:
if [ ${{ matrix.python-version }} == 3.11 ]; then
pytest tests -m "integration" \
--ignore tests/integration_tests/test_botorch.py \
--ignore tests/integration_tests/test_catboost.py \
--ignore tests/integration_tests/test_fastaiv2.py \
--ignore tests/integration_tests/test_lightgbm.py \
--ignore tests/integration_tests/test_mlflow.py \
--ignore tests/integration_tests/test_mxnet.py \
--ignore tests/integration_tests/test_pytorch_distributed.py \
--ignore tests/integration_tests/test_pytorch_ignite.py \
Expand All @@ -104,10 +102,8 @@ jobs:
if [ ${{ matrix.python-version }} == 3.11 ]; then
pytest tests -m "integration and not slow" \
--ignore tests/integration_tests/test_botorch.py \
--ignore tests/integration_tests/test_catboost.py \
--ignore tests/integration_tests/test_fastaiv2.py \
--ignore tests/integration_tests/test_lightgbm.py \
--ignore tests/integration_tests/test_mlflow.py \
--ignore tests/integration_tests/test_mxnet.py \
--ignore tests/integration_tests/test_pytorch_distributed.py \
--ignore tests/integration_tests/test_pytorch_ignite.py \
Expand Down
7 changes: 6 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand All @@ -15,7 +21,6 @@ formats: all
python:
# `sphinx` requires either Python >= 3.8 or `typed-ast` to reflect type comments
# in the documentation. See: https://github.com/sphinx-doc/sphinx/pull/6984
version: 3.8
install:
- method: pip
path: .
Expand Down
2 changes: 1 addition & 1 deletion optuna/storages/_rdb/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _create_new_trial(
if n_retries > 2:
raise

n_retries += 1
n_retries += 1

if template_trial:
frozen = copy.deepcopy(template_trial)
Expand Down
1 change: 1 addition & 0 deletions optuna/visualization/_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ def _get_timeline_plot(info: _TimelineInfo) -> "go.Figure":
yaxis={"title": "Trial"},
)
)
fig.update_layout(showlegend=True) # Draw a legend even if all TrialStates are the same.
return fig
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ document = [
]
integration = [
"botorch>=0.4.0; python_version<'3.11'",
"catboost>=0.26; python_version<'3.11'",
"catboost>=0.26; sys_platform!='darwin'",
"catboost>=0.26,<1.2; sys_platform=='darwin'",
"cma",
"distributed",
"fastai; python_version<'3.11'",
"lightgbm; python_version<'3.11'",
"mlflow; python_version<'3.11'",
"mlflow",
"mxnet; python_version<'3.11'",
"pandas",
"pytorch-ignite; python_version<'3.11'",
Expand Down

0 comments on commit 5fa1b5f

Please sign in to comment.