From 5b764ccfc31bdd00294d9c331619e51a489e409e Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Sat, 26 Nov 2022 14:08:03 -0500 Subject: [PATCH] fix some fences --- docs/src/models/quickstart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/models/quickstart.md b/docs/src/models/quickstart.md index aef7863bc9..6e704f0011 100644 --- a/docs/src/models/quickstart.md +++ b/docs/src/models/quickstart.md @@ -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) @@ -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)