Skip to content

Commit

Permalink
fix TRAINSET
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillZubov committed Mar 19, 2024
1 parent fe8a819 commit 2c87492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NeuralPDE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ include("BPINN_ode.jl")
include("PDE_BPINN.jl")
include("dgm.jl")

export NNODE, NNDAE, PINOODE
export NNODE, NNDAE, PINOODE, TRAINSET
PhysicsInformedNN, discretize,
GridTraining, StochasticTraining, QuadratureTraining, QuasiRandomTraining,
WeightedIntervalTraining,
Expand Down
4 changes: 2 additions & 2 deletions test/PINO_ode_tests_gpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const gpud = gpu_device()
ps = Lux.setup(Random.default_rng(), chain)[1] |> ComponentArray |> gpud
opt = OptimizationOptimisers.Adam(0.03)
alg = PINOODE(chain, opt, train_set; init_params = ps)
pino_solution = solve(prob, alg, verbose = true, maxiters = 1000)
pino_solution = solve(prob, alg, verbose = false, maxiters = 1000)
predict = pino_solution.predict |> cpu
ground = u_output_ |> cpu
@test groundpredict atol=1
Expand Down Expand Up @@ -102,7 +102,7 @@ end
opt = OptimizationOptimisers.Adam(0.001)
alg = PINOODE(
flat_no, opt, train_set; init_params = ps, is_data_loss = true, is_physics_loss = true)
pino_solution = solve(prob, alg, verbose = true, maxiters = 1000)
pino_solution = solve(prob, alg, verbose = false, maxiters = 1000)
predict = pino_solution.predict |> cpu
ground = u_output_
@test groundpredict atol=2
Expand Down

0 comments on commit 2c87492

Please sign in to comment.