From 46a012dbf3361b6bce944fe0bb90f279d093e57b Mon Sep 17 00:00:00 2001 From: abhro <5664668+abhro@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:53:27 -0500 Subject: [PATCH] docs: change update step to thousands in PINN 2D PDE (#1153) For 50,000 training steps, an update every 1000 step is enough detail --- examples/PINN2DPDE/main.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/PINN2DPDE/main.jl b/examples/PINN2DPDE/main.jl index 50c2aa95e..f2921ec63 100644 --- a/examples/PINN2DPDE/main.jl +++ b/examples/PINN2DPDE/main.jl @@ -180,7 +180,7 @@ function train_model(xyt, target_data, xyt_bc, target_bc; seed::Int=0, isnan(loss) && throw(ArgumentError("NaN Loss Detected")) - if iter % 500 == 1 || iter == maxiters + if iter % 1000 == 1 || iter == maxiters @printf "Iteration: [%5d / %5d] \t Loss: %.9f (%.9f) \t Physics Loss: %.9f \ (%.9f) \t Data Loss: %.9f (%.9f) \t BC \ Loss: %.9f (%.9f)\n" iter maxiters loss mean_loss stats.physics_loss mean_physics_loss stats.data_loss mean_data_loss stats.bc_loss mean_bc_loss