Skip to content

Commit

Permalink
test(SurrogatesMOE): use a deterministic sampling to prevent spurious…
Browse files Browse the repository at this point in the history
… failures
  • Loading branch information
sathvikbhagavan committed Dec 29, 2023
1 parent 2cad79a commit a1cab77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SurrogatesMOE/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a1cab77

Please sign in to comment.