Variables is not trained by the neural network #1802
Unanswered
AliaNajwaMY
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to compute the inverse problem of the diffusion equation (dy_t - a * dy_xx - b * dy_x -c y = 0). The trained data comes is generated by the forward heat file attached. However, my variable just returned the same starting variable at each iteration. What causes the neural network to not train my variable here?
`
import deepxde as dde
import numpy as np
import forward1d_nonz
from aim import Run
from functools import partial
import concurrent.futures
import matplotlib as plt
class pde_heat_i:
def init(self, m, a, b, c):
self.m = m
self.a = dde.Variable(a)
self.b = dde.Variable(b)
self.c = dde.Variable(c)
def inverse_heat(m, a_start, b_start, c_start, parameter):
run = Run()
param = np.array([[1, 0, 0], [2, 0, 0],[3, 0, 0] , [np.pi, 0, 0]])
if name == "main":
L = 1
n = 1
geom = dde.geometry.Interval(0, L)
timedomain = dde.geometry.TimeDomain(0, 1)
geomtime = dde.geometry.GeometryXTime(geom, timedomain)
`
Beta Was this translation helpful? Give feedback.
All reactions