From a1cab7740d5aebf638392e897e006f441cfa1d72 Mon Sep 17 00:00:00 2001 From: Sathvik Bhagavan Date: Fri, 29 Dec 2023 08:08:36 +0000 Subject: [PATCH] test(SurrogatesMOE): use a deterministic sampling to prevent spurious failures --- lib/SurrogatesMOE/test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SurrogatesMOE/test/runtests.jl b/lib/SurrogatesMOE/test/runtests.jl index f47ea8f6..43f9e8d0 100644 --- a/lib/SurrogatesMOE/test/runtests.jl +++ b/lib/SurrogatesMOE/test/runtests.jl @@ -116,7 +116,7 @@ end lb = [-1.0, -1.0] ub = [1.0, 1.0] n = 120 - x = sample(n, lb, ub, RandomSample()) + x = sample(n, lb, ub, LatinHypercubeSample()) y = discont_NDIM.(x) x_test = sample(10, lb, ub, GoldenSample()) @@ -184,7 +184,7 @@ end lb = [-1.0, -1.0] ub = [1.0, 1.0] n = 110 - x = sample(n, lb, ub, RandomSample()) + x = sample(n, lb, ub, LatinHypercubeSample()) y = discont_NDIM.(x) expert_types = [InverseDistanceStructure(p = 1.0), RadialBasisStructure(radial_function = linearRadial(), scale_factor = 1.0,