Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored and ChrisRackauckas committed Oct 27, 2024
1 parent 23c2a3d commit 1f2cb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/getting_started/fit_simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ More details about callbacks in Optimization.jl can be found
[here](https://docs.sciml.ai/Optimization/stable/API/solve/).

```@example odefit
function callback(p, l)
function callback(state, l)
display(l)
newprob = remake(prob, p = p)
newprob = remake(prob, p = state.u)
sol = solve(newprob, saveat = 1)
plt = plot(sol, ylim = (0, 6), label = ["Current x Prediction" "Current y Prediction"])
scatter!(plt, t_data, xy_data', label = ["x Data" "y Data"])
Expand Down

0 comments on commit 1f2cb6a

Please sign in to comment.