forked from PaddlePaddle/PaddleScience
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【hydra No.3】Adapt VIV to hydra (PaddlePaddle#622)
* 【hydra No.4】Adapt VIV to hydra * fix bug * update
- Loading branch information
Showing
3 changed files
with
188 additions
and
52 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,58 @@ | ||
hydra: | ||
run: | ||
# dynamic output directory according to running time and override name | ||
dir: outputs_VIV/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname} | ||
job: | ||
name: ${mode} # name of logfile | ||
chdir: false # keep current working direcotry unchaned | ||
config: | ||
override_dirname: | ||
exclude_keys: | ||
- TRAIN.checkpoint_path | ||
- TRAIN.pretrained_model_path | ||
- EVAL.pretrained_model_path | ||
- mode | ||
- output_dir | ||
- log_freq | ||
sweep: | ||
# output directory for multirun | ||
dir: ${hydra.run.dir} | ||
subdir: ./ | ||
|
||
# general settings | ||
mode: train # running mode: train/eval | ||
seed: 42 | ||
output_dir: ${hydra:run.dir} | ||
log_freq: 20 | ||
|
||
VIV_DATA_PATH: "./VIV_Training_Neta100.mat" | ||
|
||
# model settings | ||
MODEL: | ||
input_keys: ["t_f"] | ||
output_keys: ["eta"] | ||
num_layers: 5 | ||
hidden_size: 50 | ||
activation: "tanh" | ||
|
||
# training settings | ||
TRAIN: | ||
epochs: 100000 | ||
iters_per_epoch: 1 | ||
save_freq: 1 | ||
eval_during_train: true | ||
eval_freq: 1000 | ||
batch_size: 100 | ||
lr_scheduler: | ||
epochs: ${TRAIN.epochs} | ||
iters_per_epoch: ${TRAIN.iters_per_epoch} | ||
learning_rate: 0.001 | ||
step_size: 20000 | ||
gamma: 0.9 | ||
pretrained_model_path: null | ||
checkpoint_path: null | ||
|
||
# evaluation settings | ||
EVAL: | ||
pretrained_model_path: null | ||
batch_size: 32 |
Oops, something went wrong.