Open Daniel-EST opened 1 year ago
You are right; there is a typo in the code; it should say.
u_fn = lambda t, x: np.cos(2np.pix)
Thanks for noticing it!
Sincerely,
Juan
You are welcome. Also, thanks for the great examples I was having trouble understanding DeepONet models, your examples made it clear.
PS.: I reopened the issue so you can close it by yourself when the typo is fixed.
On the DeepONet anti-derivative notebook, the last example shows how to approximate the anti-derivative for $u(x)=cos(2\pi x),∀x\in[0,1]$. However, the
u_fn
lambda is defined as $u(x)=-cos(2\pi x),∀x\in[0,1]$.From what I could understand $s(x)$ would be equals to $-\frac{1}{2\pi}sin(2\pi x)$ in this case.
Actual text:
Let's obtain the anti-derivative of a trigonometric function. However, remember that this neural operator works for $x\in[0,1]$ when the antiderivative's initial value ($s(0)=0$). To fulfill that conditions, we will use $u(x)=cos(2\pi x),∀x\in[0,1]$.