Skip to content

Commit

Permalink
fix some depwarns
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored and avik-pal committed Sep 21, 2024
1 parent 6b80673 commit 7f4a341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/neural_ode_mm_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
optprob = Optimization.OptimizationProblem(optfunc, p)
res = Optimization.solve(
optprob, BFGS(; initial_stepnorm = 0.001); callback = cb, maxiters = 100)
@test res.minimum < l1
@test res.objective < l1
end
2 changes: 1 addition & 1 deletion test/newton_neural_ode_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# KrylovTrustRegion is hardcoded to use `Array`
psd, psax = getdata(ps), getaxes(ps)

loss_function(θ) = sum(abs2, y .- stnODE(x, ComponentArray(θ, psax))[end])
loss_function(θ) = sum(abs2, y .- stnODE(x, ComponentArray(θ, psax)).u[end])
l1 = loss_function(psd)
optf = Optimization.OptimizationFunction(
(x, p) -> loss_function(x), Optimization.AutoZygote())
Expand Down

0 comments on commit 7f4a341

Please sign in to comment.