-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `py.typed` * Trim whitespace * Simple HP types interface * Add dictionary parsing * Add note about compiling from source * Specified space types * Added examples to readme and docs * Add `py.typed` * Trim whitespace * Simple HP types interface * Add dictionary parsing * Add note about compiling from source * Pre-commit fixes * Specified space types * Added examples to readme and docs * Add requirement for `typing_extensions` * Remove unknown `bibtex` lexer * Fix doctests * Add code doc for Int * Docs for Float's * Fix import bug * Add doc for categoricals * Add doc for distributions * Integrated AutoML Sphinx Theme * Add in some removed plugins * Add a Makefile * Increased veresion * Big ol doc update * Deflate API * Code fix * Comments * Remove references to `examples` folder for docs * Emphasise Ordinal and add more doc on diff for HP * Change from Int to Integer * Fix unused import * Fix doctests, make reproducible * Rename "master" to "main" around the place * Update changelog * Add tolerance to failing test * Update docs workflow properly * Revert back to v3 * Compile extra requirements into just "dev" * Fix Makefile * Fix install in pytest workflow * Export types * Make authors it's own file like version * Add some more indicators of Mac/Windows support * Fix doctest Co-authored-by: René Sass <mail@renesass.de>
- Loading branch information
1 parent
e681dc9
commit 8d64a8d
Showing
54 changed files
with
2,508 additions
and
1,494 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
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.761 | ||
rev: v0.961 | ||
hooks: | ||
- id: mypy | ||
args: [--show-error-codes, --ignore-missing-imports, --follow-imports, skip] | ||
name: mypy ConfigSpace | ||
files: ConfigSpace | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.3 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 ConfigSpace | ||
files: ConfigSpace | ||
|
||
- id: flake8 | ||
name: flake8 test | ||
files: test |
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,12 @@ | ||
__authors__ = [ | ||
"Matthias Feurer", | ||
"Katharina Eggensperger", | ||
"Syed Mohsin Ali", | ||
"Christina Hernandez Wunsch", | ||
"Julien-Charles Levesque", | ||
"Jost Tobias Springenberg", | ||
"Philipp Mueller", | ||
"Marius Lindauer", | ||
"Jorn Tuyls", | ||
"Eddie Bergman", | ||
] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Version information.""" | ||
|
||
# The following line *must* be the last in the module, exactly as formatted: | ||
__version__ = "0.5.0" | ||
__version__ = "0.6.0" |
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,16 @@ | ||
import ConfigSpace.api.distributions as distributions | ||
import ConfigSpace.api.types as types | ||
from ConfigSpace.api.distributions import Beta, Distribution, Normal, Uniform | ||
from ConfigSpace.api.types import Categorical, Float, Integer | ||
|
||
__all__ = [ | ||
"types", | ||
"distributions", | ||
"Beta", | ||
"Distribution", | ||
"Normal", | ||
"Uniform", | ||
"Categorical", | ||
"Float", | ||
"Integer", | ||
] |
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,49 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class Distribution: | ||
"""Base distribution type""" | ||
|
||
pass | ||
|
||
|
||
@dataclass | ||
class Uniform(Distribution): | ||
"""A uniform distribution""" | ||
|
||
pass | ||
|
||
|
||
@dataclass | ||
class Normal(Distribution): | ||
"""Represents a normal distribution. | ||
Parameters | ||
---------- | ||
mu: float | ||
The mean of the distribution | ||
sigma: float | ||
The standard deviation of the float | ||
""" | ||
|
||
mu: float | ||
sigma: float | ||
|
||
|
||
@dataclass | ||
class Beta(Distribution): | ||
"""Represents a beta distribution. | ||
Parameters | ||
---------- | ||
alpha: float | ||
The alpha parameter of a beta distribution | ||
beta: float | ||
The beta parameter of a beta distribution | ||
""" | ||
|
||
alpha: float | ||
beta: float |
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,5 @@ | ||
from ConfigSpace.api.types.categorical import Categorical | ||
from ConfigSpace.api.types.float import Float | ||
from ConfigSpace.api.types.integer import Integer | ||
|
||
__all__ = ["Categorical", "Float", "Integer"] |
Oops, something went wrong.