Skip to content

Commit

Permalink
fix some fences
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 26, 2022
1 parent ed64705 commit 739197d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/models/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mean((out2[1,:] .> 0.5) .== truth) # accuracy 94% so far!

![](../assets/oneminute.png)

```
```julia
using Plots # to draw the above figure

p_true = scatter(noisy[1,:], noisy[2,:], zcolor=truth, title="True classification", legend=false)
Expand All @@ -67,7 +67,7 @@ This XOR ("exclusive or") problem is a variant of the famous one which drove Min

Since then things have developed a little.

## Features of Note
## Features to Note

Some things to notice in this example are:

Expand All @@ -81,7 +81,7 @@ Some things to notice in this example are:

Instead of calling [`gradient`](@ref Zygote.gradient) and [`update!`](@ref Flux.update!) separately, there is a convenience function [`train!`](@ref Flux.train!). If we didn't want anything extra (like logging the loss), we could replace the training loop with the following:

````julia
```julia
for epoch in 1:1_000
train!(pars, loader, opt) do x, y
y_hat = model(x)
Expand Down

0 comments on commit 739197d

Please sign in to comment.