Skip to content

Commit

Permalink
fixing a random seed in MFK tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anfelopera committed Mar 3, 2021
1 parent c0f6754 commit d12ffbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions smt/applications/tests/test_mfk.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def setUp(self):

def test_nested_lhs(self):
xlimits = np.array([[0.0, 1.0], [0.0, 1.0]])
xnorm = NestedLHS(nlevel=3, xlimits=xlimits)
xnorm = NestedLHS(nlevel=3, xlimits=xlimits, random_state=0)
xlow, xmedium, xhigh = xnorm(15)

for items1 in xmedium:
Expand Down Expand Up @@ -162,7 +162,7 @@ def hf_function(x):

# Problem set up
xlimits = np.array([[0.0, 1.0]])
xdoes = NestedLHS(nlevel=2, xlimits=xlimits)
xdoes = NestedLHS(nlevel=2, xlimits=xlimits, random_state=0)
xt_c, xt_e = xdoes(7)

# Evaluate the HF and LF functions
Expand Down
2 changes: 1 addition & 1 deletion smt/applications/tests/test_mfkpls.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def hf_function(x):

# Problem set up
xlimits = np.array([[0.0, 1.0]])
xdoes = NestedLHS(nlevel=2, xlimits=xlimits)
xdoes = NestedLHS(nlevel=2, xlimits=xlimits, random_state=0)
xt_c, xt_e = xdoes(7)

# Evaluate the HF and LF functions
Expand Down
2 changes: 1 addition & 1 deletion smt/applications/tests/test_mfkplsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def hf_function(x):

# Problem set up
xlimits = np.array([[0.0, 1.0]])
xdoes = NestedLHS(nlevel=2, xlimits=xlimits)
xdoes = NestedLHS(nlevel=2, xlimits=xlimits, random_state=0)
xt_c, xt_e = xdoes(7)

# Evaluate the HF and LF functions
Expand Down

0 comments on commit d12ffbf

Please sign in to comment.