Skip to content

Commit

Permalink
Fix typo in fashionmnist_autoencoder.livemd (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz authored Jul 21, 2023
1 parent 2b69a49 commit a3a05ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notebooks/generative/fashionmnist_autoencoder.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ mean_square_error = fn y_pred, y ->
|> Nx.mean()
end

mean_absolute_erorr = fn y_pred, y ->
mean_absolute_error = fn y_pred, y ->
y_pred
|> Nx.subtract(y)
|> Nx.abs()
Expand All @@ -139,7 +139,7 @@ For the same image both errors should be 0, because when we have two exact copie
```elixir
{
mean_square_error.(shoe_image, shoe_image),
mean_absolute_erorr.(shoe_image, shoe_image)
mean_absolute_error.(shoe_image, shoe_image)
}
```

Expand All @@ -148,7 +148,7 @@ Now the noised image:
```elixir
{
mean_square_error.(shoe_image, noised_shoe_image),
mean_absolute_erorr.(shoe_image, noised_shoe_image)
mean_absolute_error.(shoe_image, noised_shoe_image)
}
```

Expand All @@ -157,7 +157,7 @@ And a different image:
```elixir
{
mean_square_error.(shoe_image, other_image),
mean_absolute_erorr.(shoe_image, other_image)
mean_absolute_error.(shoe_image, other_image)
}
```

Expand Down

0 comments on commit a3a05ac

Please sign in to comment.