-
hi i see your reply of yesterday to use
is complete erreur message
|
Beta Was this translation helpful? Give feedback.
Replies: 18 comments
-
and you can pls give me notation for initial value for exemple dy/dt=f(t,y) and y(0)=1 how to writ initial condition not boundary condition thanks |
Beta Was this translation helpful? Give feedback.
-
For the error, did you initialize/train the network before prediction? The IVP can be viewed as BVP where the boundary is at left point. check #674 |
Beta Was this translation helpful? Give feedback.
-
i get error when i initialize/train before and after prediction both. for initial value is there way to declare it without putting the point in the geometry like boundary value ? thank you greetings |
Beta Was this translation helpful? Give feedback.
-
You can only make prediction after the network is initialized. If you don't want to do the training, you can just call train with 0 steps. DeepXDE supports IC for at least 1D problem, e.g., Burgers https://github.com/lululxvi/deepxde/blob/master/examples/Burgers.py . But DeepXDE currently doesn't support IC for 0D problem, because it is just a special case of left boundary problem. |
Beta Was this translation helpful? Give feedback.
-
i think it is because i try to use model.predict(X) in arithmetic
operations (+ and -) do you have any idea how to bypass this thanks
…On Thu, Mar 19, 2020 at 10:06 PM Lu Lu ***@***.***> wrote:
You can only make prediction after the network is initialized. If you
don't want to do the training, you can just call train with 0 steps.
DeepXDE supports IC for at least 1D problem, e.g., Burgers
https://github.com/lululxvi/deepxde/blob/master/examples/Burgers.py . But
DeepXDE currently doesn't support IC for 0D problem, because it is just a
special case of left boundary problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-601416813>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3XKEUBIJA4PT4MDVDZBDTRIKCN7ANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
-
I am not sure what you mean. Could you show me the code? |
Beta Was this translation helpful? Give feedback.
-
edit: i still get same error after putting |
Beta Was this translation helpful? Give feedback.
-
Because you predict before training. |
Beta Was this translation helpful? Give feedback.
-
absolutely correct, i make mistake early in the code i forget copy paste a
line of code
thank s
…On Fri, Mar 20, 2020 at 7:00 PM Lu Lu ***@***.***> wrote:
Because you predict before training.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-601837417>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3XKEWZMFKD2Z3CISRHKK3RIOVMHANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
-
@dpde101 In fact I find that DeepXDE supports using IC for IVP, see https://github.com/lululxvi/deepxde/blob/master/examples/ode_system.py |
Beta Was this translation helpful? Give feedback.
-
thanks for tell me
can you give example for syntax for example dy1/dt=f1(t,y), dy2/dt=f2(t,y)
and y1(0)=1 and y2(0)=3 what are the expressions for boundary and ic1 and
ic2 and data
thank you
…On Tue, Mar 24, 2020 at 10:43 PM Lu Lu ***@***.***> wrote:
@dpde101 <https://github.com/dpde101> In fact I find that DeepXDE
supports using IC for IVP, see
https://github.com/lululxvi/deepxde/blob/master/examples/ode_system.py
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-603520286>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3XKEUSD2FJGULFXGXQDA3RJESO7ANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
-
I am not sure what you mean. The ODE system example should have what you need. |
Beta Was this translation helpful? Give feedback.
-
not really because they use a function (np.sin and np.cos) to define ic1
and ic2 but i want to use lambda x
this is exctly like #673 where you
gave a well detailed solution
#673 (comment), what
i want is the same thing but for initial conditions instead of boundary
conditions
thankyou
…On Wed, Mar 25, 2020 at 5:20 PM Lu Lu ***@***.***> wrote:
I am not sure what you mean. The ODE system example should have what you
need.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-603937587>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3XKESKG3IULZ4YGGYNG6TRJIVNFANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have been following this, thanks for the reply
in example ic1 = dde.IC(geom, lambda X: -8 * np.ones(X.shape), boundary,
component=0) , is this referring to the IC: y1(-8)=0 or y1(0)=-8 ?
Le mer. 25 mars 2020 à 21:37, Lu Lu <notifications@github.com> a écrit :
…
- np.sin is the same as lambda expression, right? This is all about
Python grammar.
- IC and BC have almost the same usage.
- You can find more examples, e.g.,
https://github.com/lululxvi/deepxde/blob/master/examples/Lorenz_inverse.py
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-604074115>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOWG24O34K7BUV5WF55LVOTRJJTR5ANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
-
@tareqath haha you are following without telling me wach asahbi hetta nta
kheddam hna katsowel, khasna nemchi l Casablanca chi nhar
@luluxvi thankyou smuch i understand it now
…On Wed, Mar 25, 2020 at 9:41 PM tareqath ***@***.***> wrote:
Thanks for reply
in example ic1 = dde.IC(geom, lambda X: -8 * np.ones(X.shape), boundary,
component=0) , is this referring to the IC: y1(-8)=0 or y1(0)=-8 ?
Le mer. 25 mars 2020 à 21:37, Lu Lu ***@***.***> a écrit :
>
> - np.sin is the same as lambda expression, right? This is all about
> Python grammar.
> - IC and BC have almost the same usage.
> - You can find more examples, e.g.,
>
https://github.com/lululxvi/deepxde/blob/master/examples/Lorenz_inverse.py
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/lululxvi/deepxde/issues/19#issuecomment-604074115>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AOWG24O34K7BUV5WF55LVOTRJJTR5ANCNFSM4LOYV6MA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-604076131>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3XKEWW226PRL7OPP7WOATRJJUAVANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
-
@tareqath
So, it is |
Beta Was this translation helpful? Give feedback.
-
I can't stress this enough: thank you so much !
Le mer. 25 mars 2020 à 23:01, Lu Lu <notifications@github.com> a écrit :
… @tareqath <https://github.com/tareqath>
- lambda X: -8 * np.ones(X.shape) is f(x) = -8
- component=0 means that this IC/BC is for the first component, i.e.,
y(0)
So, it is y(0) = -8.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/lululxvi/deepxde/issues/19#issuecomment-604110508>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOWG24ILWKT2U2M5SBIZ4X3RJJ5MZANCNFSM4LOYV6MA>
.
|
Beta Was this translation helpful? Give feedback.
Because you predict before training.