PricingSign inSaved

Not confirmed / Analysis & computing

neurodiffeq

A library for solving differential equations using neural networks based on PyTorch, used by multiple research groups around the world, including at Harvard IACS.

01 / PURPOSE

What it helps you explore

  • The modules takes in a tensor of shape (None, ncoords) and the outputs a tensor of shape (None, 1).
  • There must be a total of nfuncs modules in nets to be passed to solver = Solver(..., nets=nets).
  • Let's say we have an equation du/dt + λu = 0 and initial condition u(0) = U0 where λ and U0 are unknown constants. We also have a set of observations tobs and uobs. We first import BundleSolver and BundleIVP which is necessary to obtaining a solution bundle:
  • We determine the domain of input t, as well as the domain of parameters λ and U0. We also need to make a decision of the order of the parameters. Namely, which should be the first parameter, and which should be the second. For the purpose of this demo, we choose λ to be the first parameter (index 0), and U0 to be the second (index 1). It is very important to keep track of the indices of the parameters.
  • We then define the conditions and solver as usual, except that we use BundleIVP and BundleSolver1D instead of IVP and Solver1D. The interface of these two is very similar to IVP and Solver1D. You can find out more in the API reference.
  • Now, we can train it and obtain the solution as we normally would.

Before you use it

  • The directory describes the official project; deployment, maintenance and infrastructure requirements must be checked in its documentation.
  • Hosted plans, commercial support, taxes and usage limits are not verified by this repository listing.

02 / RESOURCE FACTS

Look beyond the preview.

Resource type
Not confirmed
Access conditions
Not confirmed
Pricing
Pricing not confirmed
Pricing scope
neurodiffeq official project
Pricing conditions
The repository does not establish a current hosted-service price. Review the official pricing and deployment terms before purchase.
Subjects
Not confirmed
Maintainer
Not confirmed
Languages
Not confirmed
License · code
MIT

03 / SOURCES

Keep the source in the picture.

A source check is not peer review, institutional endorsement or independent testing.

Share this resource

Copy the profile link. It is not an academic citation.

Claim this profile · Suggest a correction