GithubHelp home page GithubHelp logo

codeaudit / dmg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amkatrutsa/dmg

0.0 3.0 0.0 550 KB

Source code for Deep Multigrid method https://arxiv.org/pdf/1711.03825.pdf

License: MIT License

Python 18.51% Jupyter Notebook 81.49%

dmg's Introduction

Deep Multigrid

Implementation of the Deep Multigrid method, which optimizes restriction/prolongation operators and damp factor in Jacobi smoother in geometric multigrid method (GMG). The optimization is based on the reformulation of the geometric multigrid method in terms of the neural network with the specific architecture. The objective function is the stochastic estimation of the spectral radius of the iteration matrix based on Gelfand's formula. We provide demo notebooks for Poisson and Helmholtz equations, which show the performance of the proposed method compared to linear GMG and classical AMG from PyAMG package.

Run demo

We use Python 3.5 in our experiments. To run demo notebooks, you should install autograd package for automatic differentiation, standard numpy-scipy packages and matplotlib for simple visualization. Also to speed-up computations we use jit compilation with numba.

Citing

If you use this code in your work, we kindly ask you to cite the paper

@article{katrutsa2017deep,
  title={Deep Multigrid: learning prolongation and restriction matrices},
  author={Katrutsa, Alexandr and Daulbaev, Talgat and Oseledets, Ivan},
  journal={arXiv preprint arXiv:1711.03825},
  year={2017}
}

Also presentation from the 19th Copper Mountain Conference On Multigrid Methods is available here

dmg's People

Watchers

 avatar  avatar  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.