Skip to content

Commit

Permalink
test: update the MOE ND tests, use 9 samples and unmark broken
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Dec 12, 2023
1 parent 1063532 commit 76d24ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/SurrogatesMOE/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end
n = 150
x = sample(n, lb, ub, SobolSample())
y = discont_NDIM.(x)
x_test = sample(10, lb, ub, GoldenSample())
x_test = sample(9, lb, ub, GoldenSample())

expert_types = [
KrigingStructure(p = [1.0, 1.0], theta = [1.0, 1.0]),
Expand All @@ -95,8 +95,8 @@ end
krig = Kriging(x, y, lb, ub, p = [1.0, 1.0], theta = [1.0, 1.0])
krig_pred_vals = krig.(x_test)
krig_rmse = rmse(true_vals, krig_pred_vals)
@test_broken (rbf_rmse > moe_rmse)
@test_broken (krig_rmse > moe_rmse)
@test (rbf_rmse > moe_rmse)
@test (krig_rmse > moe_rmse)
end

@safetestset "Miscellaneous" begin
Expand Down

0 comments on commit 76d24ca

Please sign in to comment.