We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create a bunch of tests covering the parser to keep track of that the symbolic part is working correctly MWE
@parameters x @variables u(..) Dx = Differential(x) eq = Dx(u(x)) ~ 0. bcs = [u(0.) ~ u(0.)] domains = [x ∈ Interval(0.0,1.0)] chain = FastChain((x,p) -> x.^2) chain([1],Float32[]) strategy_ = NeuralPDE.GridTraining(0.1) discretization = NeuralPDE.PhysicsInformedNN(chain,strategy_) pde_system = PDESystem(eq,bcs,domains,[x],[u]) prob = NeuralPDE.discretize(pde_system,discretization) train_data =prob.f.f.loss_function.pde_loss_function.pde_loss_functions.contents[1].train_set inner_loss =prob.f.f.loss_function.pde_loss_function.pde_loss_functions.contents[1].loss_function dudx(x) = @. 2*x @test inner_loss(train_data, Float32[]) ≈ dudx(train_data) rtol = 0.001
The text was updated successfully, but these errors were encountered:
No branches or pull requests
create a bunch of tests covering the parser to keep track of that the symbolic part is working correctly
MWE
The text was updated successfully, but these errors were encountered: