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

Test master #928

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ compared with classical methods.

## Installation


Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

Assuming that you already have Julia correctly installed, it suffices to install NeuralPDE.jl in the standard way, that is, by typing `] add NeuralPDE`. Note:
to exit the Pkg REPL-mode, just press <kbd>Backspace</kbd> or <kbd>Ctrl</kbd> + <kbd>C</kbd>.

Expand Down
4 changes: 2 additions & 2 deletions docs/src/tutorials/pino_ode.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ u0 = 1.0
prob = ODEProblem(equation, u0, tspan)

# Set the number of parameters for the ODE
number_of_parameter = 3
number_of_parameters = 3
# Define the DeepONet architecture for the PINO
deeponet = NeuralOperators.DeepONet(
Chain(
Dense(number_of_parameter => 10, Lux.tanh_fast), Dense(10 => 10, Lux.tanh_fast), Dense(10 => 10)),
Dense(number_of_parameters => 10, Lux.tanh_fast), Dense(10 => 10, Lux.tanh_fast), Dense(10 => 10)),
Chain(Dense(1 => 10, Lux.tanh_fast), Dense(10 => 10, Lux.tanh_fast),
Dense(10 => 10, Lux.tanh_fast)))

Expand Down
2 changes: 1 addition & 1 deletion test/BPINN_PDE_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
u_predict = pmean(sol1.ensemblesol[1])

# absol tests
@test mean(abs, u_predict .- u_real) < 5e-2
@test mean(abs, u_predict .- u_real) < 7e-2
end

@testitem "BPINN PDE II: 1D ODE" tags=[:pdebpinn] begin
Expand Down
4 changes: 2 additions & 2 deletions test/BPINN_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
meanscurve = prob.u0 .+ (t .- prob.tspan[1]) .* luxmean

# --------------------- ahmc_bayesian_pinn_ode() call
@test mean(abs.(x̂ .- meanscurve)) < 0.05
@test mean(abs.(physsol1 .- meanscurve)) < 0.005
@test mean(abs.(x̂ .- meanscurve)) < 0.06
@test mean(abs.(physsol1 .- meanscurve)) < 0.006

#--------------------- solve() call
@test mean(abs.(x̂1 .- pmean(sol1lux.ensemblesol[1]))) < 0.025
Expand Down
Loading