lululxvi / deepxde

A library for scientific machine learning and physics-informed learning
https://deepxde.readthedocs.io
GNU Lesser General Public License v2.1
2.58k stars 732 forks source link

DeepONet examples #151

Closed tituskx closed 3 years ago

tituskx commented 3 years ago

Hi!

In your paper on learning nonlinear operators you mention that the code of all examples can be found in https://github.com/lululxvi/deepxde. I could be mistaken but I can't find those examples; am I missing something or will they be uploaded in the future?

Thanks for the great work!

lululxvi commented 3 years ago

The code will be uploaded soon after our paper is accepted.

newalexander commented 2 years ago

Hello @lululxvi ! I see that you have now added classes that implement DeepONets (e.g., https://deepxde.readthedocs.io/en/latest/modules/deepxde.nn.tensorflow.html#module-deepxde.nn.tensorflow.deeponet), which is great.

Do you have any example scripts showing how to train a DeepONet for a sample dataset? Some things are not fully clear from the code itself. For example, the relevant data class (https://github.com/lululxvi/deepxde/blob/master/deepxde/data/triple.py) doesn't specify what X_train should be a tuple of.

lululxvi commented 2 years ago

Please the code of DeepONet at