yushuang88 commited on
Commit
a6464bb
·
verified ·
1 Parent(s): 35f5da5

Add model configuration

Browse files
Files changed (1) hide show
  1. config.json +148 -0
config.json ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SAPINN"
4
+ ],
5
+ "framework": "pytorch",
6
+ "model_name": "SA-PINNs",
7
+ "model_type": "sa_pinns",
8
+ "source_config": "conf/config.yaml",
9
+ "root": {
10
+ "common": {
11
+ "device": "auto",
12
+ "dtype": "float64",
13
+ "seed": 42,
14
+ "weight_dir": "weight",
15
+ "result_dir": "result"
16
+ },
17
+ "cases": {
18
+ "laplace": {
19
+ "model": {
20
+ "input_dim": 1,
21
+ "n_layers": 4,
22
+ "n_neurons": 50,
23
+ "activation": "tanh"
24
+ },
25
+ "attention": {
26
+ "enabled": true,
27
+ "lr": 0.01
28
+ },
29
+ "training": {
30
+ "epochs": 10000,
31
+ "lr": 0.001,
32
+ "lbfgs_iters": 2000,
33
+ "log_interval": 1000
34
+ },
35
+ "loss": {
36
+ "data": 10.0,
37
+ "pde": 1.0,
38
+ "boundary": 10.0
39
+ },
40
+ "data": {
41
+ "domain": [
42
+ 0.0,
43
+ 1.0
44
+ ],
45
+ "n_sol": 200,
46
+ "n_pde": 1000,
47
+ "n_bnd": 2,
48
+ "noise_std": 0.0,
49
+ "test_res": 200
50
+ },
51
+ "output": {
52
+ "checkpoint_name": "sapinn_laplace.pt",
53
+ "predictions_name": "sapinn_laplace.npz",
54
+ "figure_name": "sapinn_laplace.png",
55
+ "history_name": "sapinn_laplace_history.npz"
56
+ }
57
+ },
58
+ "helmholtz": {
59
+ "model": {
60
+ "input_dim": 2,
61
+ "n_layers": 4,
62
+ "n_neurons": 50,
63
+ "activation": "tanh"
64
+ },
65
+ "attention": {
66
+ "enabled": true,
67
+ "lr": 0.001
68
+ },
69
+ "training": {
70
+ "epochs": 10000,
71
+ "lr": 0.001,
72
+ "lbfgs_iters": 5000,
73
+ "log_interval": 1000
74
+ },
75
+ "loss": {
76
+ "data": 0.0,
77
+ "pde": 1.0,
78
+ "boundary": 10.0
79
+ },
80
+ "data": {
81
+ "domain_x": [
82
+ -1.0,
83
+ 1.0
84
+ ],
85
+ "domain_y": [
86
+ -1.0,
87
+ 1.0
88
+ ],
89
+ "n_sol": 200,
90
+ "n_pde": 10000,
91
+ "n_bnd": 400,
92
+ "test_res": 100,
93
+ "wave_number": 1.0
94
+ },
95
+ "output": {
96
+ "checkpoint_name": "sapinn_helmholtz.pt",
97
+ "predictions_name": "sapinn_helmholtz.npz",
98
+ "figure_name": "sapinn_helmholtz.png",
99
+ "history_name": "sapinn_helmholtz_history.npz"
100
+ }
101
+ },
102
+ "burgers": {
103
+ "model": {
104
+ "input_dim": 2,
105
+ "n_layers": 8,
106
+ "n_neurons": 20,
107
+ "activation": "tanh"
108
+ },
109
+ "attention": {
110
+ "enabled": true,
111
+ "lr": 0.005
112
+ },
113
+ "training": {
114
+ "epochs": 100,
115
+ "lr": 0.005,
116
+ "lbfgs_iters": 5000,
117
+ "log_interval": 10
118
+ },
119
+ "loss": {
120
+ "data": 10.0,
121
+ "pde": 1.0,
122
+ "boundary": 10.0
123
+ },
124
+ "data": {
125
+ "domain_x": [
126
+ -1.0,
127
+ 1.0
128
+ ],
129
+ "domain_t": [
130
+ 0.0,
131
+ 1.0
132
+ ],
133
+ "n_sol": 100,
134
+ "n_pde": 10000,
135
+ "n_bnd": 50,
136
+ "test_res": 100,
137
+ "viscosity": 0.003183098861837907
138
+ },
139
+ "output": {
140
+ "checkpoint_name": "sapinn_burgers.pt",
141
+ "predictions_name": "sapinn_burgers.npz",
142
+ "figure_name": "sapinn_burgers.png",
143
+ "history_name": "sapinn_burgers_history.npz"
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }