-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from IOHprofiler/cleaning
added expected values for tests
- Loading branch information
Showing
22 changed files
with
2,214 additions
and
1,347 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
strictness: high | ||
|
||
ignore-paths: | ||
- docs | ||
- venv | ||
- x.py | ||
|
||
pep257: | ||
run: true | ||
disable: | ||
- D203 | ||
- D213 | ||
|
||
pyflakes: | ||
disable: | ||
- F821 | ||
- F722 | ||
|
||
pep8: | ||
disable: | ||
- E721 | ||
|
||
pylint: | ||
disable: | ||
- too-many-locals | ||
- too-many-arguments | ||
- stop-iteration-return | ||
- unidiomatic-typecheck | ||
- invalid-name | ||
- attribute-defined-outside-init | ||
- too-many-instance-attributes |
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,3 @@ | ||
Sphinx==3.3.0 | ||
sphinx-automodapi==0.13 | ||
sphinx-rtd-theme==0.5.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,35 @@ | ||
"""Entrypoint of Modular CMA-ES package.""" | ||
|
||
from .asktellcmaes import AskTellCMAES | ||
from .modularcmaes import ModularCMAES, evaluate_bbob, fmin | ||
from .parameters import Parameters, BIPOPParameters | ||
from .population import Population | ||
from .sampling import ( | ||
gaussian_sampling, | ||
sobol_sampling, | ||
halton_sampling, | ||
mirrored_sampling, | ||
orthogonal_sampling, | ||
Halton, | ||
Sobol, | ||
) | ||
from .utils import timeit, ert | ||
|
||
__all__ = ( | ||
"AskTellCMAES", | ||
"ModularCMAES", | ||
"evaluate_bbob", | ||
"fmin", | ||
"Parameters", | ||
"BIPOPParameters", | ||
"Population", | ||
"gaussian_sampling", | ||
"sobol_sampling", | ||
"halton_sampling", | ||
"mirrored_sampling", | ||
"orthogonal_sampling", | ||
"Halton", | ||
"Sobol", | ||
"timeit", | ||
"ert", | ||
) |
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,44 +1,36 @@ | ||
"""Allows the user to call the library as a cli-module.""" | ||
|
||
from argparse import ArgumentParser | ||
|
||
from .modularcmaes import ModularCMAES, evaluate_bbob | ||
from .modularcmaes import evaluate_bbob | ||
|
||
|
||
parser = ArgumentParser( | ||
description='Run single function CMAES') | ||
parser = ArgumentParser(description="Run single function CMAES") | ||
parser.add_argument( | ||
'-f', "--fid", type=int, | ||
help="bbob function id", required=False, default=5 | ||
"-f", "--fid", type=int, help="bbob function id", required=False, default=5 | ||
) | ||
parser.add_argument( | ||
'-d', "--dim", type=int, | ||
help="dimension", required=False, default=5 | ||
"-d", "--dim", type=int, help="dimension", required=False, default=5 | ||
) | ||
parser.add_argument( | ||
'-i', "--iterations", type=int, | ||
"-i", | ||
"--iterations", | ||
type=int, | ||
help="number of iterations per agent", | ||
required=False, default=50 | ||
) | ||
parser.add_argument( | ||
'-l', '--logging', required=False, | ||
action='store_true', default=False | ||
) | ||
parser.add_argument( | ||
'-L', '--label', type=str, required=False, | ||
default="" | ||
) | ||
parser.add_argument( | ||
"-s", "--seed", type=int, required=False, | ||
default=42 | ||
) | ||
parser.add_argument( | ||
"-p", "--data_folder", type=str, required=False | ||
required=False, | ||
default=50, | ||
) | ||
parser.add_argument( | ||
"-a", "--arguments", nargs='+', required=False | ||
"-l", "--logging", required=False, action="store_true", default=False | ||
) | ||
parser.add_argument("-L", "--label", type=str, required=False, default="") | ||
parser.add_argument("-s", "--seed", type=int, required=False, default=42) | ||
parser.add_argument("-p", "--data_folder", type=str, required=False) | ||
parser.add_argument("-a", "--arguments", nargs="+", required=False) | ||
|
||
args = vars(parser.parse_args()) | ||
for arg in (args.pop("arguments") or []): | ||
for arg in args.pop("arguments") or []: | ||
# pylint: disable=exec-used | ||
exec(arg, None, args) | ||
|
||
evaluate_bbob(**args) |
Oops, something went wrong.