Error of recurrent decimals fixed.
This commit is contained in:
parent
61386c04f8
commit
57a52e3375
@ -57,9 +57,11 @@ const ϵ = 1e-7
|
|||||||
@test Flux.KLDivergence(y, y) ≈ 0
|
@test Flux.KLDivergence(y, y) ≈ 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
y = [1 2 3 4]
|
||||||
|
y1 = [5.0 6.0 7.0 8.0]
|
||||||
@testset "Hinge" begin
|
@testset "Hinge" begin
|
||||||
@test Flux.Hinge(y, y1) ≈ 0
|
@test Flux.Hinge(y, y1) ≈ 0
|
||||||
@test Flux.Hinge(y, 0.2 .* y) ≈ 0.33333
|
@test Flux.Hinge(y, 0.5 .* y) ≈ 0.125
|
||||||
end
|
end
|
||||||
|
|
||||||
y = [0.1 0.2 0.3]
|
y = [0.1 0.2 0.3]
|
||||||
|
Loading…
Reference in New Issue
Block a user