Coder Social home page Coder Social logo

opno's Introduction

spectral operator learning

Here you find the Spectral Operator Learning Under construcTION

It's the code for the paper:

We've complete the experients and updated the paper. Interesting results are demonstrated, for example, the deep learning method outperforms 2nd-order finite difference method with considerably fine mesh

image

Requirements

This program is developed based on pytorch 1.9.0. Older version may not support.

datasets

The datasets are now available at

except the full dataset for heat-Robin-BC experiment with full (8192+1) resolution and all (10^6) samples, the file size being 24G. If you need the full heat-robin dataset please contact us via email. And thanks for my friend Hui Zhong helping me uploading the datasets.

Each data file is loaded as tensors. The first index is the samples; the rest of indices are the discretization.

For all of the input and output functions, the sampling on Chebyshev-Gauss-Lobatto (CGL) points and uniform points are given. Functions on uniform grids are named by u0_unif and u1_unif, respectively, while those on CGL points are u0_cgl and u1_cgl.

  • For the heat-Robin-BC(1k) dataset heat_robin1k and heat-Dirichlet dataset, the shape of data is in [1100, 8193], with the first 1000 pieces being the training set and the rest test set.
  • For the Burgers-Neumann-BC dataset, the shape is [1100, 4097], due to the limitation of computational resources when generating it.
  • For the heat-Robin-BC(with N=256) heat_robinN256 dataset, it is of the shape [101000, 256].

Reproducing the experiments in paper

We fixed the random seeds as 0 in our experiments, so the reproducing should be easy. As for the detailed settings of hyperparameters, users can refer to ~/results/experiment_parameters.py. The code is for reference only, and we do not recommend to insert them directly,

Links

  • shenfun, an excellent PDE solver based on spectral Galerkin methods.
  • chebfun, a famous PDE solver mainly based on spectral collocation method.
  • Fourier Neural Operator, the state-of-the-art neural operator for parametric PDEs.

opno's People

Contributors

liu-ziyuan-math avatar maxghi8 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.