-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
142 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
SPHINXBUILD = sphinx-build | ||
BUILDDIR = build | ||
SPHINXOPTS = | ||
ALLSPHINXOPTS = $(SPHINXOPTS) . | ||
|
||
.PHONY: clean buildapi linkcheck html docs html-noexamples | ||
|
||
clean: | ||
rm -rf $(BUILDDIR) | ||
rm -rf examples | ||
rm -rf hyper*.rst | ||
|
||
linkcheck: | ||
SPHINX_GALLERY_PLOT=False $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | ||
@echo | ||
@echo "Link check complete; look for any errors in the above output or in $(BUILDDIR)/linkcheck/output.txt." | ||
|
||
linkcheck: | ||
SPHINX_GALLERY_PLOT=False $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | ||
@echo | ||
@echo "Link check complete; look for any errors in the above output or in $(BUILDDIR)/linkcheck/output.txt." | ||
html: | ||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." | ||
|
||
html-noexamples: | ||
SPHINX_GALLERY_PLOT=False $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." | ||
|
||
docs: html linkcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
import os, sys | ||
|
||
sys.path.insert(0, os.path.abspath("..")) | ||
|
||
import automl_sphinx_theme # Must come after the path injection above | ||
|
||
|
||
options = { | ||
"copyright": copyright, | ||
"author": "Theresa Eimer", | ||
"version": "0.1", | ||
"versions": { | ||
f"v0.1 (stable)": "#", | ||
}, | ||
"name": "Hypersweeper", | ||
"html_theme_options": { | ||
"github_url": "https://github.com/automl/automl_sphinx_theme", | ||
"twitter_url": "https://twitter.com/automl_org?lang=de", | ||
}, | ||
# this is here to exclude the examples gallery since they are not documented | ||
"extensions": [ | ||
"myst_parser", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.viewcode", | ||
"sphinx.ext.napoleon", # Enables to understand NumPy docstring | ||
# "numpydoc", | ||
"sphinx.ext.autosummary", | ||
"sphinx.ext.autosectionlabel", | ||
"sphinx_autodoc_typehints", | ||
"sphinx.ext.doctest", | ||
], | ||
} | ||
|
||
# Import conf.py from the automl theme | ||
automl_sphinx_theme.set_options(globals(), options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
Hypersweeper | ||
================================================== | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 2 | ||
|
||
source/getting_started | ||
source/adding_new_optimizers | ||
modules | ||
source/cite | ||
|
||
Welcome to the documentation of Hypersweeper, a hydra interface for ask-and-tell hyperparameter optimization. | ||
Hypersweeper uses Hydra to let you parallelize hyperparameter optimization across multiple GPUs and CPUs. | ||
You don't need to worry about compability with your favorite optimizer since it works with any ask-and-tell interface with only minimal coding. | ||
We also include a range of optimizers that you can use out of the box. | ||
|
||
|
||
How Can You Use the Hypersweeper? | ||
--------------------------------- | ||
|
||
To use Hypersweeper, you first need to define your target function, i.e. whatever you want to tune, using Hydra as a command line interface. | ||
You should also return the performance value of the target function. | ||
TODO: example | ||
To then do HPO using the Hypersweeper, simply override the default Hydra sweeper with the Hypersweeper variation of your choice. | ||
TODO: example | ||
To parallelize on a cluster, you should additionally override the launcher to whichever one you need. | ||
TODO: example | ||
And of course you also need a search space, for example something like this: | ||
TODO: example | ||
This is the final config for this simple case: | ||
TODO: example | ||
Finally, you can run your optimization using the following command: | ||
TODO: example | ||
|
||
Contact | ||
------- | ||
|
||
Hypersweeper is developed by `<https://www.automl.org/>`_. | ||
If you want to contribute or found an issue please visit our github page `<https://github.com/automl-private/hypersweeper>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
hypersweeper | ||
============ | ||
hydra_plugins | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
hyper_carp_s | ||
hyper_hebo | ||
hyper_pbt | ||
hyper_rs | ||
hyper_smac | ||
hypersweeper |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. |br| raw:: html | ||
|
||
<br /> | ||
|
||
Citing Hypersweeper | ||
==================== | ||
|
||
If you use the Hypersweeper in your research, please cite us (in addition to the optimizer you used) with the following Bibtex entry: | ||
|
||
.. code:: text | ||
@misc{hypersweeper, | ||
author = {Theresa Eimer and Carolin Benjamins}, | ||
title = {Hypersweeper}, | ||
howpublished = {https://github.com/automl-private/hypersweeper}, | ||
year = {2024}, | ||
} |
Empty file.