Skip to content

Commit 1c32e14

Browse files
authored
Merge pull request #1263 from automl/v2.4.0
v2.4.0
2 parents 9ec1020 + 1dd9466 commit 1c32e14

88 files changed

Lines changed: 3183 additions & 593 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/citation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out a copy of the repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- name: Check whether the citation metadata from CITATION.cff is valid
1717
uses: citation-file-format/cffconvert-github-action@2.0.0

.github/workflows/dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232

3333
- name: Setup Python
34-
uses: actions/setup-python@v5
34+
uses: actions/setup-python@v6
3535
with:
3636
python-version: "3.10"
3737

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
build:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-python@v5
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-python@v6
2222
with:
2323
python-version: "3.10"
2424
- name: "Install dependancies"
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: release-main
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
set-version:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v6
15+
with:
16+
python-version: '3.10'
17+
18+
- name: Install build tools
19+
run: |
20+
python -m pip install --upgrade pip setuptools wheel build twine
21+
22+
- name: Determine package version
23+
id: vars
24+
run: |
25+
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
26+
27+
- name: Build package
28+
run: |
29+
python -m build --sdist --wheel
30+
31+
- name: Export tag
32+
id: vars
33+
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
34+
if: ${{ github.event_name == 'release' }}
35+
36+
- name: Update project version
37+
run: |
38+
sed -i "s/^version = \".*\"/version = \"$RELEASE_VERSION\"/" pyproject.toml
39+
env:
40+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
41+
if: ${{ github.event_name == 'release' }}
42+
43+
- name: Upload updated pyproject.toml
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: pyproject-toml
47+
path: pyproject.toml
48+
49+
publish:
50+
runs-on: ubuntu-latest
51+
needs: [set-version]
52+
steps:
53+
- name: Check out
54+
uses: actions/checkout@v4
55+
56+
- name: Set up the environment
57+
uses: actions/setup-python@v6
58+
with:
59+
python-version: "3.10"
60+
61+
- name: Build dist
62+
run: |
63+
python setup.py sdist
64+
65+
- name: Twine check
66+
run: |
67+
pip install twine
68+
last_dist=$(ls -t dist/smac-*.tar.gz | head -n 1)
69+
twine_output=`twine check "$last_dist"`
70+
if [[ "$twine_output" != "Checking $last_dist: PASSED" ]]
71+
then
72+
echo $twine_output
73+
else
74+
pip install $last_dist
75+
fi
76+
77+
- name: Publish package
78+
run: python -m twine upload --repository testpypi dist/*
79+
env:
80+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
81+
82+
83+
deploy-docs:
84+
needs: publish
85+
runs-on: ubuntu-latest
86+
steps:
87+
- name: Check out
88+
uses: actions/checkout@v4
89+
90+
- name: Set up the environment
91+
uses: ./.github/actions/setup-python-env
92+
93+
- name: Deploy documentation
94+
run: uv run mkdocs gh-deploy --force

.github/workflows/pre-commit-update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
auto-update:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515

16-
- uses: actions/setup-python@v5
16+
- uses: actions/setup-python@v6
1717

1818
- uses: browniebroke/pre-commit-autoupdate-action@main
1919

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
runs-on: ubuntu-latest
2828

2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3131
with:
3232
submodules: recursive
3333

3434
- name: Setup Python 3.10
35-
uses: actions/setup-python@v5
35+
uses: actions/setup-python@v6
3636
with:
3737
python-version: "3.10"
3838

.github/workflows/pytest.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ jobs:
4949
strategy:
5050
fail-fast: false
5151
matrix:
52-
python-version: ["3.8", "3.9", "3.10"]
52+
python-version: ["3.9", "3.10", "3.11"]
5353
os: ["ubuntu-latest"]
5454

5555
steps:
5656
- name: Checkout
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v6
5858

5959
- name: Setup Python
60-
uses: actions/setup-python@v5
60+
uses: actions/setup-python@v6
6161
with:
6262
python-version: ${{ matrix.python-version }}
6363

@@ -103,12 +103,12 @@ jobs:
103103
strategy:
104104
fail-fast: false
105105
matrix:
106-
python-version: ["3.8", "3.9", "3.10"]
106+
python-version: ["3.9", "3.10", "3.11"]
107107
os: ["ubuntu-latest"]
108108

109109
steps:
110110
- name: Checkout
111-
uses: actions/checkout@v4
111+
uses: actions/checkout@v6
112112

113113
- name: Conda install
114114
uses: conda-incubator/setup-miniconda@v3
@@ -143,15 +143,15 @@ jobs:
143143
strategy:
144144
fail-fast: false
145145
matrix:
146-
python-version: ["3.8", "3.9", "3.10"]
146+
python-version: ["3.9", "3.10", "3.11"]
147147
os: ["ubuntu-latest"]
148148

149149
steps:
150150
- name: Checkout
151-
uses: actions/checkout@v4
151+
uses: actions/checkout@v6
152152

153153
- name: Setup Python
154-
uses: actions/setup-python@v5
154+
uses: actions/setup-python@v6
155155
with:
156156
python-version: ${{ matrix.python-version }}
157157

.github/workflows/recent_reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo "$(<recent_issues.md) <br />" >> mail.html
3333
- name: Send mail
3434
id: mail
35-
uses: dawidd6/action-send-mail@v4
35+
uses: dawidd6/action-send-mail@v6
3636
with:
3737
server_address: ${{secrets.MAIL_SERVER_ADDRESS}}
3838
server_port: ${{secrets.MAIL_SERVER_PORT}}

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,13 @@ dmypy.json
133133
# Pyre type checker
134134
.pyre/
135135

136+
# SMAC Logs
136137
*smac3-output_*
137138
*smac3_output*
138139

140+
# Dask Logs
141+
tmp/smac_dask_slurm
142+
139143
# macOS files
140144
.DS_Store
141145

@@ -150,4 +154,5 @@ src
150154
.vscode
151155

152156
projects
153-
_api
157+
_api
158+
branin.pkl

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
1-
# 2.3.1
1+
# 2.4.0
2+
## Improvements
3+
- Replace random forest from pyrfr with random forest from sklearn (#1246)
4+
- Submit trials to runners in SMBO instead of running configs directly (#937)
5+
- `target_function` becomes optional in Facade when using ask and tell exclusively (#946)
6+
- Added adaptive capping for algorithm configuration with runtime as target (#1247)
7+
- Readded UCB as an acquisition function (#1255)
8+
9+
## Documentation
10+
- Ask and tell without initial design and warmstarting
11+
- Random forest replacement (sklearn instead of pyrfr)
12+
- Deterministic configuration of SMAC
13+
- Add a description of parallelization in the documentation (#1226)
14+
15+
## Examples
16+
- Add target function with additional arguments (#1134)
17+
- Adapt parallelization example (#1214)
18+
19+
## Bugfixes
20+
- Ask and tell without initial design may no longer return a config from the initial design - if it is not "removed".
21+
- Addressing situations where the acquisition function suggests configurations that have already been sampled in prior iterations (#1216)
222

23+
## Misc
24+
- Rename retries to max_new_config_tries in ConfigSelector (#1207)
25+
26+
# 2.3.1
327
## Misc
428
- New SMAC logo
529
- Fix doc link in README

0 commit comments

Comments
 (0)