Skip to content

Commit fde09eb

Browse files
committed
docs: fix replace in docs
1 parent 5797dcb commit fde09eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/friction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ res = solve(op, Adam(5e-3); maxiters = 10000, callback = cb)
147147
We now have a trained neural network! We can check whether running the simulation of the model embedded with the neural network matches the data or not.
148148

149149
```@example friction
150-
res_p = SciMLStructures.replace(Tunable(), prob.p, res)
150+
res_p = SciMLStructures.replace(Tunable(), prob.p, res.u)
151151
res_prob = remake(prob, p = res_p)
152152
res_sol = solve(res_prob, Rodas4(), saveat = sol_ref.t)
153153
@test first.(sol_ref.u)≈first.(res_sol.u) rtol=1e-3 #hide

0 commit comments

Comments
 (0)