Skip to content

Commit

Permalink
Fix example (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd authored Dec 4, 2024
1 parent 281f8c9 commit bde153e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorials/linear_regression.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ It does! But the predictions are way off. We need to train the model to improve
```jldoctest linear_regression_simple; filter = r"[+-]?([0-9]*[.])?[0-9]+(f[+-]*[0-9])?"
julia> function custom_loss(weights, biases, features, labels)
ŷ = custom_model(weights, biases, features)
sum((labels .- ŷ).^2) / length(weights)
sum((labels .- ŷ).^2) / length(features)
end;
julia> custom_loss(W, b, x, y)
Expand Down

0 comments on commit bde153e

Please sign in to comment.