Open m-ayyad opened 1 year ago
what about tf.exp
? And where is this kernel
used? You can provide the whole code
tf.exp
does not work. I use it here
geom = dde.geometry.TimeDomain(0, maxtime)
observe_t, ob_y = time_orig[:, None], theta_orig[:, None]
observe_x = dde.icbc.PointSetBC(observe_t, ob_y)
quad_deg = 5
data = dde.data.IDE(
geom,
IDE_system,
observe_x,
quad_deg=5,
kernel=kernel,
num_domain=len(theta_orig),
num_boundary=0,
train_distribution="uniform",
anchors=observe_t
)
net = dde.nn.FNN([1] + [15] * 3 + [1], "tanh", "Glorot uniform")
model = dde.Model(data, net)
model.compile("adam", lr=0.001, external_trainable_variables=[k, c, A])
fnamevar = "variables.dat"
variable = dde.callbacks.VariableValue([k, c, A], period=100, filename=fnamevar)
model.train(iterations=2, callbacks=[variable])
Discussed in https://github.com/lululxvi/deepxde/discussions/1064