Skip to content

Commit

Permalink
rename operator_loss to inital_condition_loss
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillZubov committed Jun 12, 2024
1 parent cc1fada commit bb0863b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pino_ode_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function physics_loss(
sum(abs2, du .- f_) / norm
end

function operator_loss(
function inital_condition_loss(

Check warning on line 105 in src/pino_ode_solve.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"inital" should be "initial".
phi::PINOPhi{C, T}, prob::ODEProblem, x, θ) where {C <: DeepONet, T}
p, t = x
f = prob.f
Expand All @@ -129,7 +129,7 @@ end
function generate_loss(strategy::GridTraining, prob::ODEProblem, phi, bounds, tspan)
x = get_trainset(strategy, bounds, tspan)
function loss(θ, _)
operator_loss(phi, prob, x, θ) + physics_loss(phi, prob, x, θ)
inital_condition_loss(phi, prob, x, θ) + physics_loss(phi, prob, x, θ)

Check warning on line 132 in src/pino_ode_solve.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"inital" should be "initial".
end
end

Expand Down

0 comments on commit bb0863b

Please sign in to comment.