From b3c5d7afcaa6103dab126ff08de540a21d0fc916 Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Wed, 17 Apr 2024 12:25:56 +0200 Subject: [PATCH] allow a bit of aboslute tolerance deviation in a test, otherwise, we require absolute equality when one of the values are 0.0 --- test/kpca.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/kpca.jl b/test/kpca.jl index 1142706..afbbf36 100644 --- a/test/kpca.jl +++ b/test/kpca.jl @@ -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