casus / pde-learning Goto Github PK
View Code? Open in Web Editor NEWLearning Partial Differential Equations by Spectral Approximates of General Sobolev Spaces
Learning Partial Differential Equations by Spectral Approximates of General Sobolev Spaces
Big thanks for sharing the code! I have however encountered some issues:
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.