Skip to content

Commit

Permalink
Adding photosic in benchmarks (#1055)
Browse files Browse the repository at this point in the history
* Adding photosic in benchmarks

* Update experiments.py
  • Loading branch information
teytaud authored Feb 19, 2021
1 parent 5eaa2ff commit 10e9d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nevergrad/benchmark/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ def photonics(seed: tp.Optional[int] = None, as_tuple: bool = False) -> tp.Itera
seedg = create_seed_generator(seed)
optims = get_optimizers("es", "basics", "splitters", seed=next(seedg)) # type: ignore
for method in ["clipping", "tanh"]: # , "arctan"]:
for name in ["bragg", "chirped", "morpho"]:
for name in ["bragg", "chirped", "morpho", "cf_photosic_realistic", "cf_photosic_reference"]:
func = Photonics(name, 60 if name == "morpho" else 80, bounding_method=method, as_tuple=as_tuple)
for budget in [1e3, 1e4, 1e5, 1e6]:
for algo in optims:
Expand Down
4 changes: 2 additions & 2 deletions nevergrad/functions/photonics/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _make_parametrization(
Parameters
name: str
problem name, among bragg, chirped and morpho
problem name, among bragg, chirped, cf_photosic_realistic, cf_photosic_reference and morpho
dimension: int
size of the problem among 16, 40 and 60 (morpho) or 80 (bragg and chirped)
bounding_method: str
Expand Down Expand Up @@ -106,7 +106,7 @@ class Photonics(base.ExperimentFunction):
Parameters
----------
name: str
problem name, among bragg, chirped and morpho
problem name, among bragg, chirped, cf_photosic_realistic, cf_photosic_reference and morpho
dimension: int
size of the problem among 16, 40 and 60 (morpho) or 80 (bragg and chirped)
transform: str
Expand Down

0 comments on commit 10e9d22

Please sign in to comment.