Package: pinnr 0.1.1
pinnr: Physics-Informed Neural Networks in Native R with 'torch'
Fits physics-informed neural networks (PINNs) that solve ordinary and partial differential equations and estimate unknown model parameters from data. Networks are trained by penalising the equation residual, boundary and initial conditions, and misfit to observations, following Raissi, Perdikaris and Karniadakis (2019) <doi:10.1016/j.jcp.2018.10.045>. Everything runs in native R on top of 'torch', with no 'Python' dependency, and ordinary differential equation models written as 'deSolve'-style derivative functions can be used directly.
Authors:
pinnr_0.1.1.tar.gz
pinnr_0.1.1.zip(r-4.7-any)pinnr_0.1.1.zip(r-4.6-any)pinnr_0.1.1.zip(r-4.5-any)
pinnr_0.1.1.tgz(r-4.6-any)pinnr_0.1.1.tgz(r-4.5-any)
pinnr_0.1.1.tar.gz(r-4.7-any)pinnr_0.1.1.tar.gz(r-4.6-any)
pinnr_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
pinnr/json (API)
| # Install 'pinnr' in R: |
| install.packages('pinnr', repos = c('https://obasanmii.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/obasanmii/pinnr/issues
Pkgdown/docs site:https://obasanmii.github.io
Last updated from:1d900c81ef. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 133 | ||
| source / vignettes | OK | 205 | ||
| linux-release | OK | 128 | ||
| macos-release | OK | 183 | ||
| macos-oldrel | OK | 226 | ||
| windows-devel | OK | 99 | ||
| windows-release | OK | 87 | ||
| windows-oldrel | OK | 90 | ||
| wasm-release | OK | 96 |
Exports:pinn_conditionpinn_dirichletpinn_domainpinn_fitpinn_initialpinn_loadpinn_mlppinn_neumannpinn_odepinn_problempinn_samplepinn_save
Dependencies:bitbit64callrclicorodescfarvergluejsonlitelabelinglifecyclemagrittrotelprocessxpsR6RColorBrewerRcpprlangsafetensorsscalestorchviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Estimated parameters | coef.pinn_fit |
| Boundary, initial and custom conditions | conditions pinn_condition pinn_dirichlet pinn_initial pinn_neumann |
| Define a rectangular domain | pinn_domain |
| Train a physics-informed neural network | pinn_fit |
| Fully connected network used by pinnr | pinn_mlp |
| Build a problem from a deSolve-style ODE model | pinn_ode |
| Define a physics-informed problem | pinn_problem |
| Sample points in a domain | pinn_sample |
| Save and load fitted PINNs | pinn_load pinn_save |
| Plot a fitted PINN | plot.pinn_fit |
| Predict from a fitted PINN | predict.pinn_fit |
| Equation residuals of a fitted PINN | residuals.pinn_fit |
