Skip to content

Commit d225be0

Browse files
committed
Add filter to a missing doctest
1 parent 3fce30f commit d225be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/models/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ julia> predict(x_train)
7474

7575
In order to make better predictions, you'll need to provide a *loss function* to tell Flux how to objectively *evaluate* the quality of a prediction. Loss functions compute the cumulative distance between actual values and predictions.
7676

77-
```jldoctest overview; filter = r"[0-9\.]"
77+
```jldoctest overview; filter = r"[+-]?([0-9]*[.])?[0-9]+"
7878
julia> loss(x, y) = Flux.Losses.mse(predict(x), y);
7979
8080
julia> loss(x_train, y_train)

0 commit comments

Comments
 (0)