Skip to content

Commit 51a88f4

Browse files
author
Michael Abbott
committed
add DocTestFilters for Float32
1 parent 0616a47 commit 51a88f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/losses/functions.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# In this file, doctests which differ in the printed Float32 values won't fail
2+
```@meta
3+
DocTestFilters = r"[0-9\.]+f0"
4+
```
5+
16
"""
27
mae(ŷ, y; agg=mean)
38
@@ -419,3 +424,8 @@ function tversky_loss(ŷ, y; β=ofeltype(ŷ, 0.7))
419424
den = sum(y .*+ β*(1 .- y) .*+ (1 - β)*y .* (1 .- ŷ)) + 1
420425
1 - num / den
421426
end
427+
428+
429+
```@meta
430+
DocTestFilters = nothing
431+
```

0 commit comments

Comments
 (0)