Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better BPINN formulation, improvements to include dataset domain points #842

Closed
wants to merge 130 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
90dfd76
Better Posterior Formulation
AstitvaAggarwal Sep 27, 2023
b2f3ac1
Put new loglikelihood behind a conditional
Vaibhavdixit02 Oct 19, 2023
058aa05
fitzhughnagumo experiment and some edits
Vaibhavdixit02 Oct 27, 2023
103e1fe
Scale logpdfs and fix chain creation
Vaibhavdixit02 Oct 28, 2023
f5b4f1c
trying to sync
AstitvaAggarwal Jan 20, 2024
a999ccf
removed new files
AstitvaAggarwal Jan 20, 2024
637006b
Merge branch 'research' of https://github.com/AstitvaAggarwal/NeuralP…
AstitvaAggarwal Jan 20, 2024
a5c3148
update advancedHMC_MCMC.jl
AstitvaAggarwal Jan 20, 2024
f8427a3
update advancedHMC_MCMC.jl
AstitvaAggarwal Jan 20, 2024
005c906
Merge branch 'SciML:master' into research
AstitvaAggarwal Jan 22, 2024
237fb45
most of logic done
AstitvaAggarwal Feb 3, 2024
f1e0315
removed duplicate methods
AstitvaAggarwal Feb 3, 2024
d077ec7
Merge branch 'master' into research
AstitvaAggarwal Feb 3, 2024
4c88dd4
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 3, 2024
f7836fd
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 3, 2024
f334168
Merge remote-tracking branch 'upstream/bpinnexperimental' into research
AstitvaAggarwal Feb 3, 2024
a3a0cb5
keeping bayesian directory files in sync with master
AstitvaAggarwal Feb 3, 2024
e0803b1
changes to sync with master
AstitvaAggarwal Feb 3, 2024
3498ddc
keep new dir
AstitvaAggarwal Feb 3, 2024
8ba64b2
having problems with eval() call in recursive Dict creation
AstitvaAggarwal Feb 12, 2024
aa15410
removed bayesian folder
AstitvaAggarwal Feb 12, 2024
9475d27
cleaned files, removed DataInterpolations
AstitvaAggarwal Feb 12, 2024
20e14b7
Merge branch 'SciML:master' into research
AstitvaAggarwal Feb 12, 2024
b50989a
done with implementation
AstitvaAggarwal Feb 14, 2024
2fbe4a9
update BPINN_PDEinvsol_tests.jl
AstitvaAggarwal Feb 14, 2024
e002802
spellings, newloss now optional
AstitvaAggarwal Feb 15, 2024
b26a75b
update PDE_BPINN.jl
AstitvaAggarwal Feb 15, 2024
f4b1bfb
removed length reweighing in BPINN ode, testset for recur..
AstitvaAggarwal Feb 15, 2024
cd01cee
corrected tests, datasetnew format
AstitvaAggarwal Feb 16, 2024
78cadf1
changes from reviews
AstitvaAggarwal Feb 21, 2024
49dd7cb
refactor code, Corrected PDE_BPINN Logphys calc.
AstitvaAggarwal Feb 26, 2024
4e8b23d
Merge branch 'SciML:master' into research
AstitvaAggarwal Feb 26, 2024
014a11d
corrected original and new implementation, comments
AstitvaAggarwal Feb 28, 2024
11bbba7
update BPINN_ode, BPINN_PDE_tests
AstitvaAggarwal Feb 28, 2024
908cb5b
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 28, 2024
585a4f5
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 29, 2024
cf77408
done for now
AstitvaAggarwal Mar 26, 2024
16e1b56
merge conflict resolution
AstitvaAggarwal Mar 26, 2024
9f694f8
update NeuralPDE.jl, advancedHMC_MCMC.jl
AstitvaAggarwal Mar 26, 2024
a28d12f
update NeuralPDE.jl
AstitvaAggarwal Mar 26, 2024
03ee7b4
update NeuralPDE.jl
AstitvaAggarwal Mar 26, 2024
29eff11
Merge branch 'SciML:master' into research
AstitvaAggarwal Mar 26, 2024
27cfb56
update NeuralPDE.jl
AstitvaAggarwal Mar 26, 2024
68c73b2
Merge branch 'research' of https://github.com/AstitvaAggarwal/NeuralP…
AstitvaAggarwal Mar 26, 2024
6ef9d48
pmean for tests
AstitvaAggarwal Mar 29, 2024
f8cf2da
.
AstitvaAggarwal Mar 29, 2024
9b535a9
Merge branch 'research' of https://github.com/AstitvaAggarwal/NeuralP…
AstitvaAggarwal Mar 29, 2024
3e96e3d
update BPINN_PDEinvsol_tests.jl
AstitvaAggarwal Mar 29, 2024
efbccda
update training_strategies.jl
AstitvaAggarwal Mar 29, 2024
39ed5f6
update BPINN_PDEinvsol_tests.jl
AstitvaAggarwal Mar 29, 2024
fad53ff
Merge branch 'SciML:master' into research
AstitvaAggarwal Apr 14, 2024
3bb93dd
Merge branch 'SciML:master' into research
AstitvaAggarwal Apr 29, 2024
2731063
changes from reviews
AstitvaAggarwal May 4, 2024
cfca4a7
Merge branch 'SciML:master' into research
AstitvaAggarwal May 4, 2024
8b980d2
Merge branch 'research' of https://github.com/AstitvaAggarwal/NeuralP…
AstitvaAggarwal May 4, 2024
a90c730
Testing code for BPINN PDEs
AstitvaAggarwal May 8, 2024
2331614
spelling corrections, cleared test space, seperated pr
AstitvaAggarwal May 8, 2024
29d270d
Merge branch 'SciML:master' into research
AstitvaAggarwal May 9, 2024
2b42acb
Merge branch 'research' of https://github.com/AstitvaAggarwal/NeuralP…
AstitvaAggarwal May 12, 2024
94770d4
need PDE exp file to be concise
AstitvaAggarwal May 12, 2024
caa727c
Merge branch 'SciML:master' into research
AstitvaAggarwal Jun 11, 2024
dda2176
Merge branch 'SciML:master' into research
AstitvaAggarwal Jul 5, 2024
7ffadbf
Merge branch 'SciML:master' into research
AstitvaAggarwal Aug 4, 2024
375a3df
Merge remote-tracking branch 'origin/master' into research
AstitvaAggarwal Oct 2, 2024
ac25144
corrections in rebase
AstitvaAggarwal Oct 2, 2024
845f49c
Merge branch 'SciML:master' into research
AstitvaAggarwal Oct 8, 2024
2ea5212
tests pass locally
AstitvaAggarwal Oct 11, 2024
9fff415
spell checks, Statistics.jl vers
AstitvaAggarwal Oct 11, 2024
247b8e3
update tests
AstitvaAggarwal Oct 12, 2024
2eba3e3
build(deps): bump crate-ci/typos from 1.25.0 to 1.26.0
dependabot[bot] Oct 14, 2024
8ac88b6
Merge pull request #899 from SciML/dependabot/github_actions/crate-ci…
sathvikbhagavan Oct 14, 2024
f81aa7a
low level changes, transform fixes
AstitvaAggarwal Oct 15, 2024
4506f6a
refactor: trigger build with latest Lux (#882)
avik-pal Oct 17, 2024
3846fd0
ci: test with `1`, `lts` and `pre` versions of julia
thazhemadam Oct 17, 2024
5761524
Merge pull request #904 from SciML/at/julia-versions
ChrisRackauckas Oct 17, 2024
4a66eb8
ci: taming down CI timings (#903)
avik-pal Oct 18, 2024
c4330a7
chore: bump version for release
avik-pal Oct 18, 2024
699fd7d
changes from reviews
AstitvaAggarwal Oct 18, 2024
60b1351
conflicts
AstitvaAggarwal Oct 18, 2024
f5eca91
managing conflicts 2
AstitvaAggarwal Oct 18, 2024
b60a192
Better Posterior Formulation
AstitvaAggarwal Sep 27, 2023
11b8dfc
trying to sync
AstitvaAggarwal Jan 20, 2024
e71f4cc
removed new files
AstitvaAggarwal Jan 20, 2024
88be1e7
update advancedHMC_MCMC.jl
AstitvaAggarwal Jan 20, 2024
1635801
most of logic done
AstitvaAggarwal Feb 3, 2024
2339a16
removed duplicate methods
AstitvaAggarwal Feb 3, 2024
dc9be78
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 3, 2024
12ada6f
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 3, 2024
8c1ea3f
Put new loglikelihood behind a conditional
Vaibhavdixit02 Oct 19, 2023
d8d5f4a
fitzhughnagumo experiment and some edits
Vaibhavdixit02 Oct 27, 2023
dc37133
Scale logpdfs and fix chain creation
Vaibhavdixit02 Oct 28, 2023
0deb446
keeping bayesian directory files in sync with master
AstitvaAggarwal Feb 3, 2024
4c5c5ca
keep new dir
AstitvaAggarwal Feb 3, 2024
0a30bd3
having problems with eval() call in recursive Dict creation
AstitvaAggarwal Feb 12, 2024
58a98c5
removed bayesian folder
AstitvaAggarwal Feb 12, 2024
cff2827
cleaned files, removed DataInterpolations
AstitvaAggarwal Feb 12, 2024
8b633b2
done with implementation
AstitvaAggarwal Feb 14, 2024
018d505
update BPINN_PDEinvsol_tests.jl
AstitvaAggarwal Feb 14, 2024
2115ec5
spellings, newloss now optional
AstitvaAggarwal Feb 15, 2024
3b77a13
removed length reweighing in BPINN ode, testset for recur..
AstitvaAggarwal Feb 15, 2024
8037fa0
corrected tests, datasetnew format
AstitvaAggarwal Feb 16, 2024
2f0e1f5
changes from reviews
AstitvaAggarwal Feb 21, 2024
8c35059
refactor code, Corrected PDE_BPINN Logphys calc.
AstitvaAggarwal Feb 26, 2024
04ce111
corrected original and new implementation, comments
AstitvaAggarwal Feb 28, 2024
e2ebfd0
update BPINN_ode, BPINN_PDE_tests
AstitvaAggarwal Feb 28, 2024
d48e67c
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 28, 2024
e57aa5a
update BPINN_PDE_tests.jl
AstitvaAggarwal Feb 29, 2024
35ddbed
done for now
AstitvaAggarwal Mar 26, 2024
8d4e1d5
merge conflict resolution
AstitvaAggarwal Mar 26, 2024
0f3c8f0
update NeuralPDE.jl
AstitvaAggarwal Mar 26, 2024
9d084c1
update NeuralPDE.jl
AstitvaAggarwal Mar 26, 2024
9b0ed60
update NeuralPDE.jl
AstitvaAggarwal Mar 26, 2024
1265034
pmean for tests
AstitvaAggarwal Mar 29, 2024
e874933
.
AstitvaAggarwal Mar 29, 2024
ae38701
update BPINN_PDEinvsol_tests.jl
AstitvaAggarwal Mar 29, 2024
715a5ea
update BPINN_PDEinvsol_tests.jl
AstitvaAggarwal Mar 29, 2024
f745ef8
changes from reviews
AstitvaAggarwal May 4, 2024
dccf7c8
Testing code for BPINN PDEs
AstitvaAggarwal May 8, 2024
2ae9b51
spelling corrections, cleared test space, seperated pr
AstitvaAggarwal May 8, 2024
92368cf
need PDE exp file to be concise
AstitvaAggarwal May 12, 2024
fc2b307
corrections in rebase
AstitvaAggarwal Oct 2, 2024
fe904a0
tests pass locally
AstitvaAggarwal Oct 11, 2024
74bc459
spell checks, Statistics.jl vers
AstitvaAggarwal Oct 11, 2024
323247f
update tests
AstitvaAggarwal Oct 12, 2024
e140bdb
low level changes, transform fixes
AstitvaAggarwal Oct 15, 2024
08c4825
changes from reviews
AstitvaAggarwal Oct 18, 2024
50a36f7
conflicts
AstitvaAggarwal Oct 18, 2024
be7c3d4
managing conflicts 2
AstitvaAggarwal Oct 18, 2024
7b88e7f
Merge branch 'research' of https://github.com/AstitvaAggarwal/NeuralP…
AstitvaAggarwal Oct 18, 2024
a3c19b7
update project.toml
AstitvaAggarwal Oct 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
style = "sciml"
format_markdown = true
format_markdown = true
annotate_untyped_fields_with_any = false
6 changes: 3 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
steps:
- label: "GPU"
- label: "CUDA"
plugins:
- JuliaCI/julia#v1:
version: "1"
- JuliaCI/julia-test#v1:
coverage: false # 1000x slowdown
coverage: true
agents:
queue: "juliagpu"
cuda: "*"
env:
GROUP: 'GPU'
GROUP: 'CUDA'
JULIA_PKG_SERVER: "" # it often struggles with our large artifacts
# SECRET_CODECOV_TOKEN: "..."
timeout_in_minutes: 240
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main(;subdirs=["", "docs", "lib/NeuralPDELogging"])'
run: julia -e 'using CompatHelper; CompatHelper.main(;subdirs=["", "docs"])'
10 changes: 7 additions & 3 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- master
paths-ignore:
- 'docs/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -23,14 +28,13 @@ jobs:
- NNPDE1
- NNPDE2
- AdaptiveLoss
- Logging
- Forward
- DGM
- NNODE
- NeuralAdapter
- IntegroDiff
version:
- "1"
- "1.10"
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand All @@ -55,7 +59,7 @@ jobs:
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,lib/NeuralPDELogging/src
directories: src,ext
- uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@v1.25.0
uses: crate-ci/typos@v1.26.0
9 changes: 7 additions & 2 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ jobs:
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
group:
- "QA"
- "ODEBPINN"
- "PDEBPINN"
- "NNPDE1"
- "NNPDE2"
- "AdaptiveLoss"
- "Logging"
- "Forward"
- "DGM"
- "NNODE"
Expand All @@ -39,5 +42,7 @@ jobs:
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
group: "${{ matrix.group }}"
coverage-directories: "src,lib/NeuralPDELogging/src"
julia-version: "${{ matrix.version }}"
coverage-directories: "src,ext"
julia-runtest-depwarn: "yes" # TensorBoardLogger has a global depwarn
secrets: "inherit"
101 changes: 67 additions & 34 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,100 +1,133 @@
name = "NeuralPDE"
uuid = "315f7962-48a3-4962-8226-d0f33b1235f0"
authors = ["Chris Rackauckas <[email protected]>"]
version = "5.16.0"
version = "5.17.0"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
AdvancedHMC = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d"
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
ConcreteStructs = "2569d6c7-a4a2-43d3-a901-331e8e4be471"
Cubature = "667455a9-e2ce-5579-9412-b964f529a492"
DiffEqNoiseProcess = "77a26b50-5914-5dd7-bc55-306e6241c503"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
DomainSets = "5b8099bc-c8ec-5219-889f-1d9e522a28bf"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
Integrals = "de52edbc-65ea-441a-8357-d3a637375a31"
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LogDensityProblems = "6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCore = "bb33d45b-7691-41d6-9220-0943567d0623"
MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
MLDataDevices = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40"
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
OptimizationOptimisers = "42dfb2eb-d2b4-4451-abcd-913932933ac1"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
QuasiMonteCarlo = "8a4e6c94-4038-4cdc-81c3-7e6ffdb2a71b"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
WeightInitializers = "d49dbf32-c5c2-4618-8acc-27bb2598ef2d"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[weakdeps]
TensorBoardLogger = "899adc3e-224a-11e9-021f-63837185c80f"

[extensions]
NeuralPDETensorBoardLoggerExt = "TensorBoardLogger"

[compat]
ADTypes = "1.9.0"
Adapt = "4"
AdvancedHMC = "0.6.1"
Aqua = "0.8"
ArrayInterface = "7.9"
CUDA = "5.3"
Aqua = "0.8.9"
ArrayInterface = "7.11"
CUDA = "5.5.2"
ChainRulesCore = "1.24"
ComponentArrays = "0.15.14"
ComponentArrays = "0.15.16"
ConcreteStructs = "0.2.3"
Cubature = "1.5"
DiffEqNoiseProcess = "5.20"
Distributions = "0.25.107"
DocStringExtensions = "0.9.3"
DomainSets = "0.6, 0.7"
Flux = "0.14.11"
DomainSets = "0.7"
ExplicitImports = "1.10.1"
Flux = "0.14.22"
ForwardDiff = "0.10.36"
Functors = "0.4.10"
Integrals = "4.4"
LineSearches = "7.2"
LinearAlgebra = "1"
Functors = "0.4.12"
Hwloc = "3.3.0"
Integrals = "4.5"
InteractiveUtils = "<0.0.1, 1"
IntervalSets = "0.7.10"
LineSearches = "7.3"
LinearAlgebra = "1.10"
LogDensityProblems = "2"
Lux = "0.5.58"
LuxCUDA = "0.3.2"
Lux = "1.1.0"
LuxCUDA = "0.3.3"
LuxCore = "1.0.1"
LuxLib = "1.3.2"
MCMCChains = "6"
MethodOfLines = "0.11"
ModelingToolkit = "9.9"
MLDataDevices = "1.2.0"
MethodOfLines = "0.11.6"
ModelingToolkit = "9.46"
MonteCarloMeasurements = "1.1"
Optim = "1.7.8"
Optimization = "3.24, 4"
OptimizationOptimJL = "0.2.1"
OptimizationOptimisers = "0.2.1, 0.3"
OrdinaryDiffEq = "6.74"
Pkg = "1"
Optimisers = "0.3.3"
Optimization = "4"
OptimizationOptimJL = "0.4"
OptimizationOptimisers = "0.3"
OrdinaryDiffEq = "6.87"
Printf = "1.10"
QuasiMonteCarlo = "0.3.2"
Random = "1"
ReTestItems = "1.29.0"
RecursiveArrayTools = "3.27.0"
Reexport = "1.2"
RuntimeGeneratedFunctions = "0.5.12"
SafeTestsets = "0.1"
SciMLBase = "2.28"
SciMLBase = "2.56"
Statistics = "1.10"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accidental?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, i tried fixes for some tests that were failing due to version conflicts.

SymbolicUtils = "1.5, 2, 3"
Symbolics = "5.27.1, 6"
Test = "1"
UnPack = "1"
Zygote = "0.6.69"
StochasticDiffEq = "6.69.1"
SymbolicIndexingInterface = "0.3.31"
SymbolicUtils = "3.7.2"
Symbolics = "6.14"
TensorBoardLogger = "0.1.24"
Test = "1.10"
WeightInitializers = "1.0.3"
Zygote = "0.6.71"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
DiffEqNoiseProcess = "77a26b50-5914-5dd7-bc55-306e6241c503"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
Hwloc = "0e44f5e4-bd66-52a0-8798-143a42290a1d"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LineSearches = "d3d80556-e9d4-5f37-9878-2ab0fcc64255"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
LuxCore = "bb33d45b-7691-41d6-9220-0943567d0623"
LuxLib = "82251201-b29d-42c6-8e01-566dec8acb11"
MethodOfLines = "94925ecb-adb7-4558-8ed8-f975c56a0bf4"
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
TensorBoardLogger = "899adc3e-224a-11e9-021f-63837185c80f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Test", "CUDA", "SafeTestsets", "OptimizationOptimJL", "Pkg", "OrdinaryDiffEq", "LineSearches", "LuxCUDA", "Flux", "MethodOfLines"]
test = ["Aqua", "CUDA", "DiffEqNoiseProcess", "ExplicitImports", "Flux", "Hwloc", "InteractiveUtils", "LineSearches", "LuxCUDA", "LuxCore", "LuxLib", "MethodOfLines", "OptimizationOptimJL", "OrdinaryDiffEq", "ReTestItems", "StochasticDiffEq", "TensorBoardLogger", "Test"]
16 changes: 8 additions & 8 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ DiffEqBase = "6.148"
Distributions = "0.25.107"
Documenter = "1"
DomainSets = "0.6, 0.7"
Flux = "0.14.11"
Flux = "0.14.17"
Integrals = "4"
LineSearches = "7.2"
Lux = "0.5.22"
Lux = "1"
LuxCUDA = "0.3.2"
MethodOfLines = "0.11"
ModelingToolkit = "9.7"
MonteCarloMeasurements = "1"
NeuralPDE = "5.14"
Optimization = "3.24, 4"
OptimizationOptimJL = "0.2.1, 0.3, 0.4"
OptimizationOptimisers = "0.2.1, 0.3"
OptimizationPolyalgorithms = "0.2"
OrdinaryDiffEq = "6.74"
NeuralPDE = "5"
Optimization = "4"
OptimizationOptimJL = "0.4"
OptimizationOptimisers = "0.3"
OptimizationPolyalgorithms = "0.3"
OrdinaryDiffEq = "6.87"
Plots = "1.36"
QuasiMonteCarlo = "0.3.2"
Random = "1"
Expand Down
3 changes: 1 addition & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ makedocs(sitename = "NeuralPDE.jl",
canonical = "https://docs.sciml.ai/NeuralPDE/stable/"),
pages = pages)

deploydocs(repo = "github.com/SciML/NeuralPDE.jl.git";
push_preview = true)
deploydocs(repo = "github.com/SciML/NeuralPDE.jl.git"; push_preview = true)
6 changes: 3 additions & 3 deletions docs/src/examples/3rd.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ bcs = [u(0.0) ~ 0.0,
domains = [x ∈ Interval(0.0, 1.0)]

# Neural network
chain = Lux.Chain(Dense(1, 8, Lux.σ), Dense(8, 1))
chain = Chain(Dense(1, 8, σ), Dense(8, 1))

discretization = PhysicsInformedNN(chain, QuasiRandomTraining(20))
@named pde_system = PDESystem(eq, bcs, domains, [x], [u(x)])
prob = discretize(pde_system, discretization)

callback = function (p, l)
println("Current loss is: $l")
(p.iter % 500 == 0 || p.iter == 2000) && println("Current loss is: $l")
return false
end

res = Optimization.solve(prob, OptimizationOptimisers.Adam(0.01); maxiters = 2000)
res = solve(prob, OptimizationOptimisers.Adam(0.01); maxiters = 2000, callback)
phi = discretization.phi
```

Expand Down
13 changes: 4 additions & 9 deletions docs/src/examples/complex.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ NeuralPDE supports training PINNs with complex differential equations. This exam
As the input to this neural network is time which is real, we need to initialize the parameters of the neural network with complex values for it to output and train with complex values.

```@example complex
using Random, NeuralPDE
using OrdinaryDiffEq
using Lux, OptimizationOptimisers
using Plots
using Random, NeuralPDE, OrdinaryDiffEq, Lux, OptimizationOptimisers, Plots
rng = Random.default_rng()
Random.seed!(100)

Expand All @@ -30,11 +27,9 @@ parameters = [2.0, 0.0, 1.0]

problem = ODEProblem(bloch_equations, u0, time_span, parameters)

chain = Lux.Chain(
Lux.Dense(1, 16, tanh;
init_weight = (rng, a...) -> Lux.kaiming_normal(rng, ComplexF64, a...)),
Lux.Dense(
16, 4; init_weight = (rng, a...) -> Lux.kaiming_normal(rng, ComplexF64, a...))
chain = Chain(
Dense(1, 16, tanh; init_weight = kaiming_normal(ComplexF64)),
Dense(16, 4; init_weight = kaiming_normal(ComplexF64))
)
ps, st = Lux.setup(rng, chain)

Expand Down
10 changes: 5 additions & 5 deletions docs/src/examples/heterogeneous.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ domains = [x ∈ Interval(0.0, 1.0),
y ∈ Interval(0.0, 1.0)]

numhid = 3
chains = [[Lux.Chain(Dense(1, numhid, Lux.σ), Dense(numhid, numhid, Lux.σ),
Dense(numhid, 1)) for i in 1:2]
[Lux.Chain(Dense(2, numhid, Lux.σ), Dense(numhid, numhid, Lux.σ),
Dense(numhid, 1)) for i in 1:2]]
discretization = NeuralPDE.PhysicsInformedNN(chains, QuadratureTraining())
chains = [[Chain(Dense(1, numhid, σ), Dense(numhid, numhid, σ), Dense(numhid, 1))
for i in 1:2]
[Chain(Dense(2, numhid, σ), Dense(numhid, numhid, σ), Dense(numhid, 1))
for i in 1:2]]
discretization = PhysicsInformedNN(chains, QuadratureTraining())

@named pde_system = PDESystem(eq, bcs, domains, [x, y], [p(x), q(y), r(x, y), s(y, x)])
prob = SciMLBase.discretize(pde_system, discretization)
Expand Down
Loading
Loading