mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
Fix random seed for reproducible results in tests
This commit is contained in:
parent
ef14c7a7eb
commit
60e5034256
1 changed files with 2 additions and 1 deletions
|
|
@ -45,9 +45,10 @@ class MappingTests(unittest.TestCase):
|
|||
self.assertTrue(MappingGradChecker(mapping, X).checkgrad())
|
||||
|
||||
def test_mlpextmapping(self):
|
||||
np.random.seed(42)
|
||||
X = np.random.randn(100,3)
|
||||
for activation in ['tanh', 'relu', 'sigmoid']:
|
||||
mapping = GPy.mappings.MLPext(input_dim=3, hidden_dims=[5,5], output_dim=2, activation=activation)
|
||||
X = np.random.randn(100,3)
|
||||
self.assertTrue(MappingGradChecker(mapping, X).checkgrad())
|
||||
|
||||
def test_addmapping(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue