Skip to content

Commit

Permalink
Merge pull request #2353 from poludmik/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in docs/src/tutorials/2021-01-26-mlp.md
  • Loading branch information
ToucheSir authored Nov 13, 2023
2 parents 4bb795a + f255c94 commit 043b28f
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 043b28f

Please sign in to comment.