Giter Site home page Giter Site logo

peikalunci / a-united-framework-to-integrate-physics-into-gaussian-processes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from long-da/a-united-framework-to-integrate-physics-into-gaussian-processes

0.0 0.0 0.0 1.08 MB

License: MIT License

Python 100.00%

a-united-framework-to-integrate-physics-into-gaussian-processes's Introduction

AutoIP: A United Framework to Integrate Physics into Gaussian Processes

by Da Long, Zheng Wang, Aditi Krishnapriyan, Robert Kirby, Shandian Zhe, Michael Mahoney





Physical modeling is critical for many modern science and engineering applications. From a data science or machine learning perspective, where more domain-agnostic, data-driven models are pervasive, physical knowledge — often expressed as differential equations — is valuable in that it is complementary to data, and it can potentially help overcome issues such as data sparsity, noise, and inaccuracy. In this work, we propose a simple, yet powerful and general framework — AutoIP, for Automatically Incorporating Physics — that can integrate all kinds of differential equations into Gaussian Processes (GPs) to enhance prediction accuracy and uncertainty quantification. These equations can be linear or nonlinear, spatial, temporal, or spatio-temporal, complete or incomplete with unknown source terms, and so on. Based on kernel differentiation, we construct a GP prior to sample the values of the target function, equation related derivatives, and latent source functions, which are all jointly from a multivariate Gaussian distribution. The sampled values are fed to two likelihoods: one to fit the observations, and the other to conform to the equation. We use the whitening method to evade the strong dependency between the sample.

System Requirements

We implemented our model by Jax and pytorch. For Jax version, Jax and Optax --- A Jax optimizaiton library are required. For pytorch version, pytorch is required.

Run examples

Pendulum

  • No damping:   
    ./Jax_version/no_damping.py or ./pytorch_version/no_damping.py
  • With latent source + no damping:   
    ./pytorch_version/latent_no_damping.py
  • Damping:   
    ./Jax_version/damping.py or ./pytorch_version/damping.py
  • With latent source + damping:   
    ./pytorch_version/latent_damping.py

To run noisy pendulum, add "_noise" to the end. For example, to run noisy damping pendulum: use ./Jax_version/damping_noise.py or ./pytorch_version/damping_noise.py.

Allen-Cahn

  • Full equation: ./Jax_version/allen.py or ./pytorch_version/allen.py
  • With latent source: ./pytorch_version/latent_allen.py

License

IFC is released under the MIT License, please refer the LICENSE for details

Collaborations

Feel free to contact us via [email protected] or [email protected]

Citation

Please cite our paper if it is helpful to you

@inproceedings{long2022autoip,
  title={AutoIP: A United Framework to Integrate Physics into Gaussian Processes},
  author={Long, Da and Wang, Zheng and Krishnapriyan, Aditi and Kirby, Robert and Zhe, Shandian and Mahoney, Michael},
  booktitle={International Conference on Machine Learning},
  pages={14210--14222},
  year={2022},
  organization={PMLR}
}

a-united-framework-to-integrate-physics-into-gaussian-processes's People

Contributors

long-da avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.