Skip to content

Commit 05f71d2

Browse files
committed
update AC-discovery comments
1 parent c35b277 commit 05f71d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/AC-discovery.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ def f_model(u_model, var, x, t):
3535
Exact = data['uu']
3636
Exact_u = np.real(Exact)
3737

38-
# define MLP depth and layer width
39-
layer_sizes = [2, 128, 128, 128, 128, 1]
40-
4138
# generate all combinations of x and t
4239
X, T = np.meshgrid(x, t)
4340

@@ -47,13 +44,15 @@ def f_model(u_model, var, x, t):
4744
x = X_star[:, 0:1]
4845
t = X_star[:, 1:2]
4946

50-
print(np.shape(x))
5147
# append to a list for input to model.fit
5248
X = [x, t]
5349

5450
# define col_weights for SA discovery model, can be removed
5551
col_weights = tf.Variable(tf.random.uniform([np.shape(x)[0], 1]))
5652

53+
# define MLP depth and layer width
54+
layer_sizes = [2, 128, 128, 128, 128, 1]
55+
5756
# initialize, compile, train model
5857
model = DiscoveryModel()
5958
model.compile(layer_sizes, f_model, X, u_star, params,

0 commit comments

Comments
 (0)