Skip to content

Commit

Permalink
fix seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Saves committed Jan 31, 2024
1 parent da1cd21 commit 95c1a2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions smt/applications/tests/test_ego.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,11 +1012,11 @@ def f_obj(X):
)
x_opt, y_opt, dnk, x_data, y_data = ego.optimize(fun=f_obj)
if ds.HAS_CONFIG_SPACE: # results differs wrt config_space impl
self.assertAlmostEqual(np.sum(y_data), 6.846225752638086, delta=1e-10)
self.assertAlmostEqual(np.sum(x_data), 33.81192549170815, delta=1e-10)
self.assertAlmostEqual(np.sum(y_data), 6.846225752638086, delta=1e-9)
self.assertAlmostEqual(np.sum(x_data), 33.81192549170815, delta=1e-9)
else:
self.assertAlmostEqual(np.sum(y_data), 1.8911720770059735, delta=1e-10)
self.assertAlmostEqual(np.sum(x_data), 47.56885202767958, delta=1e-10)
self.assertAlmostEqual(np.sum(y_data), 1.8911720770059735, delta=1e-9)
self.assertAlmostEqual(np.sum(x_data), 47.56885202767958, delta=1e-9)

def test_ego_gek(self):
ego, fun = self.initialize_ego_gek()
Expand Down

0 comments on commit 95c1a2c

Please sign in to comment.