Skip to content

Commit

Permalink
Fix typo in docs/src/tutorials/2021-01-26-mlp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
poludmik committed Nov 11, 2023
1 parent 4bb795a commit f255c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorials/2021-01-26-mlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Note that we use the functions [Dense](https://fluxml.ai/Flux.jl/stable/models/l

## Loss functions

Now, we define the loss function `loss_all`. It expects a DataLoader object and the `model` function we defined aboved as arguments. Notice that this function iterates through the `dataloader` object in mini-batches and uses the function [logitcrossentropy](https://fluxml.ai/Flux.jl/stable/models/losses/#Flux.Losses.logitcrossentropy) to compute the difference between the predicted and actual values.
Now, we define the loss function `loss_all`. It expects a DataLoader object and the `model` function we defined above as arguments. Notice that this function iterates through the `dataloader` object in mini-batches and uses the function [logitcrossentropy](https://fluxml.ai/Flux.jl/stable/models/losses/#Flux.Losses.logitcrossentropy) to compute the difference between the predicted and actual values.

```julia
function loss_all(dataloader, model)
Expand Down

0 comments on commit f255c94

Please sign in to comment.