Skip to content

Commit

Permalink
fix data index
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed May 20, 2024
1 parent 556ee66 commit f871f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/showcase/bayesian_neural_ode.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ p = ComponentArray{Float64}(p)
const _p = p
```

Note that the `f64` is required to put the Flux neural network into Float64 precision.
Note that the `f64` is required to put the Lux neural network into Float64 precision.

## Step 3: Define the loss function for the Neural ODE.

```@example bnode
function predict_neuralode(p)
p = p isa ComponentArray ? p : convert(typeof(_p),p)
Array(prob_neuralode(u0, p)[1])
Array(prob_neuralode(u0, p))
end
function loss_neuralode(p)
pred = predict_neuralode(p)
Expand Down

0 comments on commit f871f8d

Please sign in to comment.