Skip to content

Commit

Permalink
Merge #1608
Browse files Browse the repository at this point in the history
1608: fix typo in models overview document r=CarloLucibello a=teamclouday

I saw this when I was viewing the introductory [tutorial](https://fluxml.ai/Flux.jl/stable/models/overview/).  
So I want to help fix it.  

### PR Checklist

- [ ] Tests are added
- [ ] Entry in NEWS.md
- [x] Documentation, if applicable
- [ ] API changes require approval from a committer (different from the author, if applicable)


Co-authored-by: teamclouday <teamclouday@gmail.com>
  • Loading branch information
bors[bot] and teamclouday committed Jun 6, 2021
2 parents 34199ca + 1667fc5 commit 3b7895e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/models/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Use the `actual` function to build sets of data for training and verification:
julia> x_train, x_test = hcat(0:5...), hcat(6:10...)
([0 1 … 4 5], [6 7 … 9 10])
julia> y_train, y_test = actual.(x_train), actual.(y_train)
julia> y_train, y_test = actual.(x_train), actual.(x_test)
([2 6 … 18 22], [26 30 … 38 42])
```

Expand Down Expand Up @@ -172,13 +172,13 @@ After 200 training steps, the loss went down, and the parameters are getting clo
Now, let's verify the predictions:

```
julia> predict(y_test)
julia> predict(x_test)
1×5 Array{Float64,2}:
105.306 121.2 137.095 152.989 168.883
25.8442 29.8194 33.7946 37.7698 41.745
julia> actual.(y_test)
julia> y_test
1×5 Array{Int64,2}:
106 122 138 154 170
26 30 34 38 42
```

The predictions are good. Here's how we got there.
Expand Down

0 comments on commit 3b7895e

Please sign in to comment.