Skip to content

Commit

Permalink
clean test_torch and set seed
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlimy committed Mar 13, 2024
1 parent 0c74bf2 commit 59ee578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from autoemulate.emulators import NeuralNetTorch
from autoemulate.utils import set_random_seed

set_random_seed(1234)


def test_nn_torch_initialisation():
nn_torch = NeuralNetTorch()
Expand Down Expand Up @@ -119,6 +117,7 @@ def test_nn_torch_module_ui():


def test_nn_torch_module_ui_param_search_random():
set_random_seed(1234)
input_size, output_size = 10, 2
X = np.random.rand(100, input_size)
y = np.random.rand(100, output_size)
Expand All @@ -136,6 +135,7 @@ def test_nn_torch_module_ui_param_search_random():


def test_nn_torch_module_ui_param_search_bayes():
set_random_seed(1234)
input_size, output_size = 10, 2
X = np.random.rand(10, input_size)
y = np.random.rand(10, output_size)
Expand Down

0 comments on commit 59ee578

Please sign in to comment.