Skip to content

Commit

Permalink
Merge pull request #526 from automl/development
Browse files Browse the repository at this point in the history
Release SMAC 0.11
  • Loading branch information
mfeurer authored Aug 14, 2019
2 parents b5c3986 + aef02f3 commit 81eba54
Show file tree
Hide file tree
Showing 163 changed files with 4,983 additions and 3,264 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ target_algo_runs.json
doc/main_options.rst
doc/scenario_options.rst
doc/smac_options.rst
doc/apidoc
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ before_install:
install:
- pip install pep8 codecov mypy flake8
- cat requirements.txt | xargs -n 1 -L 1 pip install
- python setup.py install
- pip install .[all]

script:
- ci_scripts/$TESTSUITE
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include requirements.txt
include requirements.txt
include extras_require.json
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ used in SMAC3 requires SWIG (>= 3.0).

## Installation via pip

SMAC3 is available on pipy.
SMAC3 is available on PyPI.

```pip install smac```

Expand All @@ -63,7 +63,7 @@ SMAC3 is available on pipy.
```
git clone https://github.com/automl/SMAC3.git && cd SMAC3
cat requirements.txt | xargs -n 1 -L 1 pip install
python setup.py install
pip install .
```

## Installation in Anaconda
Expand All @@ -73,6 +73,29 @@ packages **before** you can install SMAC:

```conda install gxx_linux-64 gcc_linux-64 swig```

## Optional dependencies

SMAC3 comes with a set of optional dependencies that can be installed using
[setuptools extras](https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies):

- `lhd`: Latin hypercube design
- `gp`: Gaussian process models

These can be installed from PyPI or manually:

```
# from PyPI
pip install smac[gp]
# manually
pip install .[gp,lhd]
```

For convenience there is also an `all` meta-dependency that installs all optional dependencies:
```
pip install smac[all]
```

# License

This program is free software: you can redistribute it and/or modify
Expand Down
27 changes: 27 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# 0.11.0

## Major changes

* Local search now starts from observed configurations with high acquisition function values, low cost and the from
unobserved configurations with high acquisition function values found by random search (#509)
* Reduces the number of mandatory requirements (#516)
* Make Gaussian processes more resilient to linalg error by more aggressively adding noise to the diagonal (#511)
* Inactive hyperparameters are now imputed with a value outside of the modeled range (-1) (#508)
* Replace the GP library George by scikit-learn (#505)
* Renames facades to better reflect their use cases (#492), and adds a table to help deciding which facade to use (#495)
* SMAC facades now accept class arguments instead of object arguments (#486)

## Minor changes

* Vectorize local search for improved speed (#500)
* Extend the Sobol and LHD initial design to work for non-continuous hyperparameters as well applying an idea similar
to inverse transform sampling (#494)


## Bug fixes

* Fixes a regression in the validation scripts (#519)
* Fixes a unit test regression with numpy 1.17 (#523)
* Fixes an error message (#510)
* Fixes an error making random search behave identical for all seeds

# 0.10.0

## Major changes
Expand Down
7 changes: 2 additions & 5 deletions ci_scripts/circle_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ source activate testenv

# install documentation building dependencies
pip install --upgrade numpy
pip install --upgrade matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_bootstrap_theme cython numpydoc
# And finally, all other dependencies
cat requirements.txt | xargs -n 1 -L 1 pip install
pip install --upgrade matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_bootstrap_theme numpydoc

python setup.py clean
python setup.py develop
pip install -e .[all]

# pipefail is necessary to propagate exit codes
set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
4 changes: 2 additions & 2 deletions ci_scripts/create_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if ! [[ -z ${DOCPUSH+x} ]]; then
if [[ "$DOCPUSH" == "true" ]]; then

# install documentation building dependencies
pip install --upgrade matplotlib seaborn setuptools nose coverage sphinx pillow sphinx-gallery sphinx_bootstrap_theme cython numpydoc nbformat nbconvert mock
pip install --upgrade sphinx_rtd_theme

# $1 is the branch name
# $2 is the global variable where we set the script status
Expand All @@ -20,7 +20,7 @@ if ! [[ -z ${DOCPUSH+x} ]]; then
fi

# create the documentation
cd doc && make html 2>&1
cd doc && make buildapi && make html 2>&1

# create directory with branch name
# the documentation for dev/stable from git will be stored here
Expand Down
18 changes: 17 additions & 1 deletion ci_scripts/run_examples.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cd examples

for script in rf.py rosenbrock.py svm.py
for script in fmin_rosenbrock.py SMAC4BO_rosenbrock.py SMAC4HPO_acq_rosenbrock.py SMAC4HPO_rf.py SMAC4HPO_rosenbrock.py SMAC4HPO_svm.py
do
python $script
rval=$?
Expand All @@ -17,3 +17,19 @@ if [ "$rval" != 0 ]; then
echo "Error running example QCP"
exit $rval
fi
cd ..

cd branin
python branin_fmin.py
rval=$?
if [ "$rval" != 0 ]; then
echo "Error running example QCP"
exit $rval
fi

python ../../scripts/smac --scenario scenario.txt
rval=$?
if [ "$rval" != 0 ]; then
echo "Error running example QCP"
exit $rval
fi
4 changes: 3 additions & 1 deletion ci_scripts/run_unittests.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
echo Testing revision $(git rev-parse HEAD) ...
make test && bash scripts/test_no_files_left.sh
echo Testing from directory `pwd`
conda list
make test && bash scripts/test_no_files_left.sh
14 changes: 0 additions & 14 deletions doc/apidoc/smac.configspace.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.configspace.util.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.epm.base_epm.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.epm.base_imputor.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.epm.random_epm.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.epm.rf_with_instances.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.epm.rfr_imputator.rst

This file was deleted.

19 changes: 0 additions & 19 deletions doc/apidoc/smac.epm.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.epm.uncorrelated_mo_rf_with_instances.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.facade.epils_facade.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.facade.func_facade.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.facade.roar_facade.rst

This file was deleted.

17 changes: 0 additions & 17 deletions doc/apidoc/smac.facade.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.facade.smac_facade.rst

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.initial_design.initial_design.rst

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions doc/apidoc/smac.initial_design.rst

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions doc/apidoc/smac.intensification.intensification.rst

This file was deleted.

Loading

0 comments on commit 81eba54

Please sign in to comment.