Skip to content

Commit bde153e

Browse files
Fix example (#2538)
1 parent 281f8c9 commit bde153e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/tutorials/linear_regression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ It does! But the predictions are way off. We need to train the model to improve
106106
```jldoctest linear_regression_simple; filter = r"[+-]?([0-9]*[.])?[0-9]+(f[+-]*[0-9])?"
107107
julia> function custom_loss(weights, biases, features, labels)
108108
ŷ = custom_model(weights, biases, features)
109-
sum((labels .- ŷ).^2) / length(weights)
109+
sum((labels .- ŷ).^2) / length(features)
110110
end;
111111
112112
julia> custom_loss(W, b, x, y)

0 commit comments

Comments
 (0)