Skip to content

Commit dd249cd

Browse files
renesassKatharina EggenspergermfeurerdengdifanCarolin Benjamins
authored
Version 2.0.0a2 (#883)
## Bugfixes - Fixed random weight (re-)generalization of multi-objective algorithms: Before the weights were generated for each call to ``build_matrix``, now we only re-generate them for every iteration. - Optimization may get stuck because of deep copying an iterator for callback: We removed the configuration call from ``on_next_configurations_end``. ## Minor - Removed example badget in README. - Added SMAC logo to README. Co-authored-by: Katharina Eggensperger <eggenspk@informatik.uni-freiburg.de> Co-authored-by: Matthias Feurer <feurerm@informatik.uni-freiburg.de> Co-authored-by: dengdifan <difandeng@gmail.com> Co-authored-by: Carolin Benjamins <benjamins@tnt.uni-hannover.de> Co-authored-by: Eric Kalosa-Kenyon <ekquasar@appdynamics.com>
1 parent ca4ffba commit dd249cd

18 files changed

Lines changed: 109 additions & 54 deletions

File tree

.github/workflows/dist.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ on:
99
branches:
1010
- main
1111
- development
12-
- development-2.0
1312

1413
# Trigger on a open/push to a PR targeting one of these branches
1514
pull_request:
1615
branches:
1716
- main
1817
- development
19-
- development-2.0
2018

2119
jobs:
2220
dist:

.github/workflows/docs.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ on:
1111
branches:
1212
- main
1313
- development
14-
- development-2.0
1514

1615
# Trigger on a open/push to a PR targeting one of these branches
1716
pull_request:
1817
branches:
1918
- main
2019
- development
21-
- development-2.0
2220

2321
env:
2422
name: SMAC3
@@ -36,9 +34,16 @@ jobs:
3634
python-version: "3.10"
3735

3836
- name: Install dependencies
37+
id: install
3938
run: |
4039
pip install ".[gpytorch,dev]"
4140
41+
# Getting the version
42+
SMAC_VERSION=$(python -c "import smac; print('v' + str(smac.version));")
43+
44+
# Make it a global variable
45+
echo "SMAC_VERSION=$SMAC_VERSION" >> $GITHUB_ENV
46+
4247
- name: Make docs
4348
run: |
4449
make clean
@@ -58,13 +63,19 @@ jobs:
5863
rm -rf $branch_name
5964
cp -r ../${{ env.name }}/docs/build/html $branch_name
6065
66+
# we also copy the current SMAC_VERSION
67+
rm -rf $SMAC_VERSION
68+
cp -r ../${{ env.name }}/docs/build/html $SMAC_VERSION
69+
70+
6171
- name: Push to gh-pages
6272
if: (contains(github.ref, 'develop') || contains(github.ref, 'main')) && github.event_name == 'push'
6373
run: |
6474
last_commit=$(git log --pretty=format:"%an: %s")
6575
cd ../gh-pages
6676
branch_name=${GITHUB_REF##*/}
6777
git add $branch_name/
78+
git add $SMAC_VERSION/
6879
git config --global user.name 'Github Actions'
6980
git config --global user.email 'not@mail.com'
7081
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ on:
99
branches:
1010
- main
1111
- development
12-
- development-2.0
1312

1413
# When a push occurs on a PR that targets these branches
1514
pull_request:
1615
branches:
1716
- main
1817
- development
19-
- development-2.0
2018

2119
jobs:
2220
run-all-files:

.github/workflows/pytest.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ on:
99
branches:
1010
- main
1111
- development
12-
- development-2.0
1312

1413
# Triggers with push to a pr aimed at main
1514
pull_request:
1615
branches:
1716
- main
1817
- development
19-
- development-2.0
2018

2119
schedule:
2220
# Every day at 7AM UTC

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33

44
[![Tests](https://github.com/automl/SMAC3/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/automl/SMAC3/actions/workflows/pytest.yml)
5-
[![Docs](https://github.com/automl/SMAC3/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/automl/SMAC3/actions/workflows/docs.yml)
6-
[![Examples](https://github.com/automl/SMAC3/actions/workflows/examples.yml/badge.svg?branch=main)](https://github.com/automl/SMAC3/actions/workflows/examples.yml)
5+
[![Documentation](https://github.com/automl/SMAC3/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/automl/SMAC3/actions/workflows/docs.yml)
76
[![codecov
87
Status](https://codecov.io/gh/automl/SMAC3/branch/master/graph/badge.svg)](https://codecov.io/gh/automl/SMAC3)
98

9+
<img src="docs/images/logo.png" style="width: 50%;" />
10+
1011
SMAC is a tool for algorithm configuration to optimize the parameters of arbitrary algorithms, including hyperparameter
1112
optimization of Machine Learning algorithms. The main core consists of Bayesian Optimization in combination with an
1213
aggressive racing mechanism to efficiently decide which of two configurations performs better.

changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 2.0.0a2
2+
3+
## Bugfixes
4+
- Fixed random weight (re-)generalization of multi-objective algorithms: Before the weights were generated for each call to ``build_matrix``, now we only re-generate them for every iteration.
5+
- Optimization may get stuck because of deep copying an iterator for callback: We removed the configuration call from ``on_next_configurations_end``.
6+
7+
## Minor
8+
- Removed example badget in README.
9+
- Added SMAC logo to README.
10+
11+
112
# 2.0.0a1
213

314
## Big Changes

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"copyright": copyright,
1111
"author": author,
1212
"version": version,
13+
"versions": {
14+
f"v{version} (unstable)": "#",
15+
"v2.0.0a1": "https://automl.github.io/SMAC3/v2.0.0a1/",
16+
"v1.4.0": "https://automl.github.io/SMAC3/v1.4.0/",
17+
},
1318
"name": name,
1419
"html_theme_options": {
1520
"github_url": "https://github.com/automl/SMAC3",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def read_file(filepath: str) -> str:
3232
"pytest-xdist",
3333
"pytest-timeout",
3434
# Docs
35-
"automl-sphinx-theme>=0.1.18",
35+
"automl-sphinx-theme>=0.2",
3636
# Others
3737
"mypy",
3838
"isort",

smac/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Copyright {datetime.date.today().strftime('%Y')}, Marius Lindauer, Katharina Eggensperger,
2020
Matthias Feurer, André Biedenkapp, Difan Deng, Carolin Benjamins, Tim Ruhkopf, René Sass
2121
and Frank Hutter"""
22-
version = "2.0.0a1"
22+
version = "2.0.0a2"
2323

2424

2525
try:

smac/callback.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
from ConfigSpace import Configuration
4-
53
import smac
64
from smac.runhistory import TrialInfo, TrialInfoIntent, TrialValue
75

@@ -37,7 +35,7 @@ def on_next_configurations_start(self, smbo: smac.main.BaseSMBO) -> None:
3735
"""
3836
pass
3937

40-
def on_next_configurations_end(self, smbo: smac.main.BaseSMBO, configurations: list[Configuration]) -> None:
38+
def on_next_configurations_end(self, smbo: smac.main.BaseSMBO) -> None:
4139
"""Called after the intensification asks for new configurations. Essentially, this callback is called
4240
before the surrogate model is trained and before the acquisition function is called.
4341
"""

0 commit comments

Comments
 (0)