Skip to content

Commit

Permalink
fix examples config
Browse files Browse the repository at this point in the history
  • Loading branch information
aramoto99 committed Dec 27, 2024
1 parent 951ab18 commit bebe35c
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 179 deletions.
137 changes: 0 additions & 137 deletions aiaccel/apps/optimize.py

This file was deleted.

4 changes: 2 additions & 2 deletions aiaccel/hpo/apps/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def main() -> None:
params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x1: [0, 1]
x2:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x2
low: 0.0
high: 1.0
Expand Down
6 changes: 3 additions & 3 deletions examples/job/optuna/CmaEs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x1:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x1
low: -1
high: 1
log: false
x2:
_target_: aiaccel.apps.optimize.SuggestInt
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestInt
name: x2
low: -1
high: 1
Expand Down
4 changes: 2 additions & 2 deletions examples/job/optuna/GPS/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x
low: -10.0
high: 10.0
Expand Down
4 changes: 2 additions & 2 deletions examples/job/optuna/Grid/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x
low: -5
high: 5
Expand Down
6 changes: 3 additions & 3 deletions examples/job/optuna/NSGAII/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x1:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x1
low: -100.0
high: 100.0
log: false
x2:
_target_: aiaccel.apps.optimize.SuggestCategorical
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestCategorical
name: x2
choices: [-1, 0, 1]

Expand Down
8 changes: 4 additions & 4 deletions examples/job/optuna/NSGAIII/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x1:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x1
low: 0
high: 5
log: false
x2:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x2
low: 0
high: 5
log: false
x3:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x3
low: 0
high: 5
Expand Down
6 changes: 3 additions & 3 deletions examples/job/optuna/QMC/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x1:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x1
low: -1.0
high: 1.0
log: false
x2:
_target_: aiaccel.apps.optimize.SuggestInt
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestInt
name: x2
low: -1.0
high: 1.0
Expand Down
31 changes: 10 additions & 21 deletions examples/job/optuna/Random/config.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
study:
_target_: optuna.create_study
direction: minimize
sampler:
_target_: optuna.samplers.RandomSampler
seed: null

params:
_convert_: partial
<<<<<<< HEAD
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x1: [0, 1]
x2:
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x2
low: 0.0
high: 1.0
=======
_target_: aiaccel.apps.optimize.HparamsManager
x:
_target_: aiaccel.apps.optimize.SuggestFloat
<<<<<<< HEAD
name: x2
low: 0.0
high: 1.0
<<<<<<< HEAD
>>>>>>> 13d33e0 (add load_if_exists (#395)):examples/job/optuna/config.yaml
>>>>>>> 9938cf1 (add load_if_exists (#395))
=======
>>>>>>> a026391 (fix conflict)
=======
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x
low: -10.0
high: 10.0
>>>>>>> c133763 (fix config)
log: false

n_trials: 30
n_max_jobs: 4

group: gaa50000
4 changes: 2 additions & 2 deletions examples/job/optuna/TPE/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ study:

params:
_convert_: partial
_target_: aiaccel.apps.optimize.HparamsManager
_target_: aiaccel.hpo.apps.optimize.HparamsManager
x:
_target_: aiaccel.apps.optimize.SuggestFloat
_target_: aiaccel.hpo.optuna.suggest_wrapper.SuggestFloat
name: x
low: -10.0
high: 10.0
Expand Down

0 comments on commit bebe35c

Please sign in to comment.