Skip to content

Commit

Permalink
Real valued datagen from GridTraining when boundary points are trivial
Browse files Browse the repository at this point in the history
Fixes #906
  • Loading branch information
ChrisRackauckas committed Nov 9, 2024
1 parent ccce83e commit 36116c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/NNPDE_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

using NeuralPDE, Cubature, Integrals, QuasiMonteCarlo

# DataGen is Real: https://github.com/SciML/NeuralPDE.jl/issues/906
@parameters x
@variables u(..)

NeuralPDE.generate_training_sets([x (-1.0, 1.0)], 0.1, [u(x) ~ x], [0.0 ~ 0.0], Float64, [x],[:u])

function callback(p, l)
if p.iter == 1 || p.iter % 250 == 0
println("Current loss is: $l after $(p.iter) iterations")
Expand Down

0 comments on commit 36116c3

Please sign in to comment.