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.
[Fea] Add poisson1d for gPINN algorithm and fix LBFGS initialization …
…for compatible (PaddlePaddle#682) * update gPINN code * fix for compatible with legacy version of paddle * update poisson1d config * remove opencv-python from requiments for large pkg size and refine hint for missing opencv-python and fix document of nowcast * remove opencv-python from requiments for large pkg size and refine hint for missing opencv-python and fix document of nowcast * refine code with accurate configuration and add x/y label for u-x figure * fix more * fix
- Loading branch information
1 parent
5103f94
commit 9239eb8
Showing
7 changed files
with
415 additions
and
5 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,52 @@ | ||
hydra: | ||
run: | ||
# dynamic output directory according to running time and override name | ||
dir: outputs_poisson_1d/${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: 2023 | ||
output_dir: ${hydra:run.dir} | ||
|
||
# set working condition | ||
NPOINT_PDE: 15 | ||
NPOINT_PDE_EVAL: 100 | ||
|
||
# model settings | ||
MODEL: | ||
input_keys: ["x"] | ||
output_keys: ["u"] | ||
num_layers: 3 | ||
hidden_size: 20 | ||
activation: "tanh" | ||
|
||
# training settings | ||
TRAIN: | ||
epochs: 20000 | ||
iters_per_epoch: 1 | ||
eval_freq: 1000 | ||
eval_during_train: true | ||
pretrained_model_path: null | ||
checkpoint_path: null | ||
|
||
# evaluation settings | ||
EVAL: | ||
batch_size: | ||
l2rel_validator: ${NPOINT_PDE_EVAL} | ||
pretrained_model_path: null |
Oops, something went wrong.