deepxde

A library for scientific machine learning and physics-informed learning

https://github.com/lululxvi/deepxde

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 41 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
    11 of 80 committers (13.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.3%) to scientific vocabulary

Keywords

deep-learning deeponet jax multi-fidelity-data neural-network operator paddle pde physics-informed-learning pinn pytorch scientific-machine-learning tensorflow

Keywords from Contributors

supervised-learning ai4science mesh interpretability sequences generic projection interactive optim hacking
Last synced: 6 months ago · JSON representation ·

Repository

A library for scientific machine learning and physics-informed learning

Basic Info
Statistics
  • Stars: 3,428
  • Watchers: 64
  • Forks: 861
  • Open Issues: 287
  • Releases: 72
Topics
deep-learning deeponet jax multi-fidelity-data neural-network operator paddle pde physics-informed-learning pinn pytorch scientific-machine-learning tensorflow
Created about 7 years ago · Last pushed 8 months ago
Metadata Files
Readme License Citation

README.md

DeepXDE

Build Status Documentation Status Codacy Badge PyPI Version PyPI Downloads Conda Version Conda Downloads License

DeepXDE is a library for scientific machine learning and physics-informed learning. DeepXDE includes the following algorithms:

DeepXDE supports five tensor libraries as backends: TensorFlow 1.x (tensorflow.compat.v1 in TensorFlow 2.x), TensorFlow 2.x, PyTorch, JAX, and PaddlePaddle. For how to select one, see Working with different backends.

Documentation: ReadTheDocs

Features

DeepXDE has implemented many algorithms as shown above and supports many features:

  • enables the user code to be compact, resembling closely the mathematical formulation.
  • complex domain geometries without tyranny mesh generation. The primitive geometries are interval, triangle, rectangle, polygon, disk, ellipse, star-shaped, cuboid, sphere, hypercube, and hypersphere. Other geometries can be constructed as constructive solid geometry (CSG) using three boolean operations: union, difference, and intersection. DeepXDE also supports a geometry represented by a point cloud.
  • 5 types of boundary conditions (BCs): Dirichlet, Neumann, Robin, periodic, and a general BC, which can be defined on an arbitrary domain or on a point set; and approximate distance functions for hard constraints.
  • 3 automatic differentiation (AD) methods to compute derivatives: reverse mode (i.e., backpropagation), forward mode, and zero coordinate shift (ZCS).
  • different neural networks: fully connected neural network (FNN), stacked FNN, residual neural network, (spatio-temporal) multi-scale Fourier feature networks, etc.
  • many sampling methods: uniform, pseudorandom, Latin hypercube sampling, Halton sequence, Hammersley sequence, and Sobol sequence. The training points can keep the same during training or be resampled (adaptively) every certain iterations.
  • 4 function spaces: power series, Chebyshev polynomial, Gaussian random field (1D/2D).
  • data-parallel training on multiple GPUs.
  • different optimizers: Adam, L-BFGS, etc.
  • conveniently save the model during training, and load a trained model.
  • callbacks to monitor the internal states and statistics of the model during training: early stopping, etc.
  • uncertainty quantification using dropout.
  • float16, float32, and float64.
  • many other useful features: different (weighted) losses, learning rate schedules, metrics, etc.

All the components of DeepXDE are loosely coupled, and thus DeepXDE is well-structured and highly configurable. It is easy to customize DeepXDE to meet new demands.

Installation

DeepXDE requires one of the following backend-specific dependencies to be installed:

Then, you can install DeepXDE itself.

  • Install the stable version with pip:

sh $ pip install deepxde

  • Install the stable version with conda:

sh $ conda install -c conda-forge deepxde

  • For developers, you should clone the folder to your local machine and put it along with your project scripts.

sh $ git clone https://github.com/lululxvi/deepxde.git

Explore more

Cite DeepXDE

If you use DeepXDE for academic research, you are encouraged to cite the following paper:

@article{lu2021deepxde, author = {Lu, Lu and Meng, Xuhui and Mao, Zhiping and Karniadakis, George Em}, title = {{DeepXDE}: A deep learning library for solving differential equations}, journal = {SIAM Review}, volume = {63}, number = {1}, pages = {208-228}, year = {2021}, doi = {10.1137/19M1274067} }

Contributing to DeepXDE

First off, thanks for taking the time to contribute!

  • Reporting bugs. To report a bug, simply open an issue in the GitHub Issues.
  • Suggesting enhancements. To submit an enhancement suggestion for DeepXDE, including completely new features and minor improvements to existing functionality, let us know by opening an issue in the GitHub Issues.
  • Pull requests. If you made improvements to DeepXDE, fixed a bug, or had a new example, feel free to send us a pull-request.
  • Asking questions. To get help on how to use DeepXDE or its functionalities, you can open a discussion in the GitHub Discussions.
  • Answering questions. If you know the answer to any question in the Discussions, you are welcomed to answer.

Slack. The DeepXDE Slack hosts a primary audience of moderate to experienced DeepXDE users and developers for general chat, online discussions, collaboration, etc. If you need a slack invite, please send me an email.

The Team

DeepXDE was developed by Lu Lu under the supervision of Prof. George Karniadakis at Brown University from the summer of 2018 to 2020. DeepXDE was originally self-hosted in Subversion at Brown University, under the name SciCoNet (Scientific Computing Neural Networks). On Feb 7, 2019, SciCoNet was moved from Subversion to GitHub, renamed to DeepXDE.

DeepXDE is currently maintained by Lu Lu at Yale University with major contributions coming from many talented individuals in various forms and means. A non-exhaustive but growing list needs to mention: Paul Escapil-Inchausp, Zongren Zou, Jialin Li, Saransh Chopra, Sensen He, Vladimir Dudenkov, Anran Jiao, Zhongyi Jiang, Shunyuan Mao.

License

LGPL-2.1 License

Owner

  • Name: Lu Lu
  • Login: lululxvi
  • Kind: user
  • Company: University of Pennsylvania

Assistant Professor of Chemical and Biomolecular Engineering, University of Pennsylvania

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  DeepXDE: A deep learning library for solving
  differential equations
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Lu
    orcid: 'https://orcid.org/0000-0002-5476-5768'
    family-names: Lu
    affiliation: Massachusetts Institute of Technology
  - given-names: Xuhui
    family-names: Meng
    affiliation: Brown University
  - family-names: Mao
    given-names: Zhiping
    affiliation: Xiamen University
  - family-names: Karniadakis
    given-names: George Em
    orcid: 'https://orcid.org/0000-0002-9713-7120'
    affiliation: Brown University
identifiers:
  - type: doi
    value: 10.1137/19M1274067
repository-code: 'https://github.com/lululxvi/deepxde'
url: 'https://deepxde.readthedocs.io'
license: LGPL-2.1

GitHub Events

Total
  • Create event: 6
  • Commit comment event: 2
  • Release event: 6
  • Issues event: 60
  • Watch event: 699
  • Delete event: 1
  • Issue comment event: 224
  • Push event: 48
  • Pull request review event: 378
  • Pull request review comment event: 385
  • Pull request event: 79
  • Fork event: 113
Last Year
  • Create event: 6
  • Commit comment event: 2
  • Release event: 6
  • Issues event: 60
  • Watch event: 699
  • Delete event: 1
  • Issue comment event: 224
  • Push event: 48
  • Pull request review event: 378
  • Pull request review comment event: 385
  • Pull request event: 79
  • Fork event: 113

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 1,238
  • Total Committers: 80
  • Avg Commits per committer: 15.475
  • Development Distribution Score (DDS): 0.278
Past Year
  • Commits: 75
  • Committers: 20
  • Avg Commits per committer: 3.75
  • Development Distribution Score (DDS): 0.747
Top Committers
Name Email Commits
Lu Lu l****i@g****m 894
pescapil p****l@u****l 30
lijialin03 1****3 26
vl-dud 6****d 25
Zongren Zou 3****u 24
Saransh Chopra s****1@g****m 18
HydrogenSulfate 4****1@q****m 18
Jerry-Jzy 6****y 17
Anran Jiao 3****o 16
smao-astro 5****o 11
Damien BE 5****d 11
Mitchell Daneker m****r@s****u 10
MinZhu123 8****3 7
eddieqiao23 7****3 6
See.Looooo s****3@g****m 6
g-w1 5****1 6
Samuel Burbulla s****a@a****e 6
handizhang 9****g 5
Kuangdai Leng k****g@s****k 5
Jonathan Lee n****e@s****u 4
ChenxiWu123 9****3 4
bfan05 7****5 4
tsarikahin 5****n 4
Agniv Sarkar a****e@g****m 3
DecoderLiu 1****u 3
Olivier Claessen o****n@g****m 3
kyouma y****r@g****m 3
Ryan Krumenacker 1****m 3
csuastt 5****t 3
翁康宇(Kangyu Weng) 1****g 3
and 50 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 275
  • Total pull requests: 257
  • Average time to close issues: 2 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 202
  • Total pull request authors: 56
  • Average comments per issue: 3.9
  • Average comments per pull request: 1.87
  • Merged pull requests: 185
  • Bot issues: 0
  • Bot pull requests: 3
Past Year
  • Issues: 54
  • Pull requests: 68
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 18 days
  • Issue authors: 43
  • Pull request authors: 18
  • Average comments per issue: 0.81
  • Average comments per pull request: 1.79
  • Merged pull requests: 49
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • AJAXJR24 (8)
  • athtareq (5)
  • HumbertHumbert7 (4)
  • pescap (4)
  • dezenn (4)
  • CharukaWick (4)
  • DeepaMahm (4)
  • ShupengGao (4)
  • xuelanghanbao (3)
  • isaingit (3)
  • LanPeng-94 (3)
  • PhilippBrendel (3)
  • sumantkrsoni (3)
  • lijialin03 (3)
  • fperiago (3)
Pull Request Authors
  • vl-dud (52)
  • lijialin03 (44)
  • bonneted (24)
  • pescap (16)
  • kuangdai (14)
  • HydrogenSulfate (13)
  • ZongrenZou (12)
  • g-w1 (11)
  • Saransh-cpp (10)
  • supercgor (8)
  • samuelburbulla (7)
  • MinZhu123 (7)
  • agniv-the-marker (7)
  • KangyuWeng (7)
  • anranjiao (6)
Top Labels
Issue Labels
Pull Request Labels
dependencies (5) github_actions (2)

Dependencies

docker/requirements.txt pypi
  • deepxde *
  • ipython *
  • jupyter *
  • jupyterlab *
  • matplotlib *
  • notebook *
  • pandas *
  • scikit-optimize *
  • scipy *
  • sklearn *
  • tensorflow-probability ==0.12.2
docs/requirements.txt pypi
  • flax *
  • jax *
  • matplotlib *
  • numpy *
  • optax *
  • paddlepaddle >=2.3.0
  • scikit-learn *
  • scikit-optimize >=0.9.0
  • scipy *
  • tensorflow >=2.2.0
  • tensorflow-probability >=0.10.0
  • torch >=1.9.0
requirements.txt pypi
  • matplotlib *
  • numpy *
  • scikit-learn *
  • scikit-optimize >=0.9.0
  • scipy *
.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
docker/Dockerfile docker
  • horovod/horovod master build
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/upload-artifact v3 composite
  • pypa/gh-action-pypi-publish v1.6.4 composite
pyproject.toml pypi
  • matplotlib *
  • numpy *
  • scikit-learn *
  • scikit-optimize >=0.9.0
  • scipy *