Giter Site home page Giter Site logo

pde-learning's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pde-learning's Issues

Notebooks have hard-coded paths and some code does not work

Big thanks for sharing the code! I have however encountered some issues:

  • some files contain hardcoded paths:
    • NavierStokesEquation_Inverse_Problem.ipynb
    • QHOEquation_Forward_Problem_m=21.ipynb

I would have fixed that, but it's unclear to me whether PSM_V1 or PSM_V2 is needed in those cases.

In QHOEquation_Forward_Problem_m=21.ipynb, I have tried to replace the hardcoded path with both PSM versions, however V2 does not work already at the import level, and with V1, the cell

# Sobolev Cubature
diffeo_2d = hyper_rect(*rect)
diffeo_1d_0 = hyper_rect(rect[0])
diffeo_1d_1 = hyper_rect(rect[1])

sob_2d = Sobolev(deg=50, dim=2, diffeo=diffeo_2d)
sob_1d_0 = Sobolev(deg=200, diffeo=diffeo_1d_0)
sob_1d_1 = Sobolev(deg=200, diffeo=diffeo_1d_1)

dx2, dy2 = torch.tensor(sob_2d.diff.diffs(np.array([[2,0],[0,2]])))

leads to the error

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[12], line 6
      3 diffeo_1d_0 = hyper_rect(rect[0])
      4 diffeo_1d_1 = hyper_rect(rect[1])
----> 6 sob_2d = Sobolev(deg=50, dim=2, diffeo=diffeo_2d)
      7 sob_1d_0 = Sobolev(deg=200, diffeo=diffeo_1d_0)
      8 sob_1d_1 = Sobolev(deg=200, diffeo=diffeo_1d_1)

TypeError: __init__() got an unexpected keyword argument 'dim'

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.