-
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.
* change resumable * fix test * fix resume test * Update documents (#402) * Update index.rst * Update docs * Fix dependencies * Added docs for v2 (#403) * updated contribution_guide.md * Split contribution_guide.md --------- Co-authored-by: Yoshiaki Bando <[email protected]> * Update aiaccel logo to a transparent one (#404) * Update logo * Update conf.py * rollback .github/workflows/ci.yaml * fix --config setting * reafctoring: aiaccel/hpo/apps/optimize.py --------- Co-authored-by: Yoshiaki Bando <[email protected]> Co-authored-by: 3bisuoka <[email protected]>
- Loading branch information
1 parent
31dd240
commit 828ed8b
Showing
10 changed files
with
363 additions
and
29 deletions.
There are no files selected for viewing
Empty file.
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,13 @@ | ||
study: | ||
_target_: optuna.create_study | ||
direction: minimize | ||
storage: | ||
_target_: optuna.storages.InMemoryStorage | ||
study_name: aiaccel_study | ||
load_if_exists: false | ||
|
||
params: | ||
_convert_: partial | ||
_target_: aiaccel.hpo.apps.optimize.HparamsManager | ||
|
||
n_max_jobs: 1 |
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,8 @@ | ||
study: | ||
study_name: aiaccel_study | ||
storage: | ||
_target_: optuna.storages.RDBStorage | ||
url: sqlite:///aiaccel.db | ||
engine_kwargs: | ||
connect_args: | ||
timeout: 30 |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
storage: | ||
_target_: optuna.storages.RDBStorage | ||
url: sqlite:///aiaccel_storage.db | ||
engine_kwargs: | ||
connect_args: | ||
timeout: 30 | ||
|
||
study: | ||
_target_: optuna.create_study | ||
direction: minimize | ||
storage: ${storage} | ||
study_name: my_study | ||
load_if_exists: false | ||
sampler: | ||
_target_: optuna.samplers.TPESampler | ||
seed: 0 | ||
|
||
params: | ||
_convert_: partial | ||
_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 | ||
log: false | ||
|
||
n_trials: 30 | ||
n_max_jobs: 1 | ||
|
||
group: gaa50000 |
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,24 @@ | ||
study: | ||
_target_: optuna.create_study | ||
direction: minimize | ||
study_name: my_study | ||
load_if_exists: false | ||
sampler: | ||
_target_: optuna.samplers.TPESampler | ||
seed: 0 | ||
|
||
params: | ||
_convert_: partial | ||
_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 | ||
log: false | ||
|
||
n_trials: 30 | ||
n_max_jobs: 1 | ||
|
||
group: gaa50000 |
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,10 @@ | ||
#!/bin/bash | ||
|
||
#$-l rt_C.small=1 | ||
#$-cwd | ||
|
||
source /etc/profile.d/modules.sh | ||
module load gcc/13.2.0 | ||
module load python/3.10/3.10.14 | ||
|
||
python objective_for_test.py $@ |
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,22 @@ | ||
from argparse import ArgumentParser | ||
from pathlib import Path | ||
import pickle as pkl | ||
|
||
|
||
def main() -> None: | ||
parser = ArgumentParser() | ||
parser.add_argument("dst_filename", type=Path) | ||
parser.add_argument("--x1", type=float) | ||
parser.add_argument("--x2", type=float) | ||
args = parser.parse_args() | ||
|
||
x1, x2 = args.x1, args.x2 | ||
|
||
y = (x1**2) - (4.0 * x1) + (x2**2) - x2 - (x1 * x2) | ||
|
||
with open(args.dst_filename, "wb") as f: | ||
pkl.dump(y, f) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.