Skip to content

Commit

Permalink
allow a bit of aboslute tolerance deviation in a test,
Browse files Browse the repository at this point in the history
otherwise, we require absolute equality when one of the values are 0.0
  • Loading branch information
KristofferC committed Apr 17, 2024
1 parent 9c68bd5 commit b3c5d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/kpca.jl
Expand Up @@ -30,7 +30,7 @@ import Statistics: mean, cov
Z = K - I1*K - K*I2 + I1*K*I2

KC = fit(MultivariateStats.KernelCenter, K)
@test all(Z .≈ MultivariateStats.transform!(KC, copy(K)))
@test all(.≈(Z, MultivariateStats.transform!(KC, copy(K)); atol=1e-12))
end

# kernel calculations
Expand Down

0 comments on commit b3c5d7a

Please sign in to comment.