Skip to content

Domain specific language for configuration spaces in Python. Useful for hyperparameter optimization and algorithm configuration.

License

Notifications You must be signed in to change notification settings

automl/ConfigSpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

63a2fbb · Nov 21, 2024
Jul 12, 2024
Nov 21, 2024
Jul 12, 2024
Nov 21, 2024
Nov 21, 2024
Jul 12, 2024
Jul 12, 2024
Aug 18, 2021
Aug 15, 2022
Jul 12, 2024
Aug 20, 2024
Nov 21, 2024
Jul 12, 2024
Nov 21, 2024

Repository files navigation

ConfigSpace

A simple Python module implementing a domain specific language to manage configuration spaces for algorithm configuration and hyperparameter optimization tasks.
Distributed under BSD 3-clause, see LICENSE except all files in the directory ConfigSpace.nx, which are copied from the networkx package and licensed under a BSD license.

The documentation can be found at https://automl.github.io/ConfigSpace/latest/. Further examples can be found in the SMAC documentation.

Minimum Example

from ConfigSpace import ConfigurationSpace

cs = ConfigurationSpace(
    name="myspace",
    space={
        "a": (0.1, 1.5),  # UniformFloat
        "b": (2, 10),  # UniformInt
        "c": ["mouse", "cat", "dog"],  # Categorical
    },
)

configs = cs.sample_configuration(2)

Citing the ConfigSpace

@article{
    title   = {BOAH: A Tool Suite for Multi-Fidelity Bayesian Optimization & Analysis of Hyperparameters},
    author  = {M. Lindauer and K. Eggensperger and M. Feurer and A. Biedenkapp and J. Marben and P. Müller and F. Hutter},
    journal = {arXiv:1908.06756 {[cs.LG]}},
    date    = {2019},
}

About

Domain specific language for configuration spaces in Python. Useful for hyperparameter optimization and algorithm configuration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published