mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
Update mapping_tests.py
Make output of gradient check verbose to diagnose error
This commit is contained in:
parent
ae942b09c4
commit
8fd0e26981
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class MappingTests(unittest.TestCase):
|
|||
for activation in ['tanh', 'relu', 'sigmoid']:
|
||||
mapping = GPy.mappings.MLPext(input_dim=3, hidden_dims=[5,5,5], output_dim=2, activation=activation)
|
||||
X = np.random.randn(100,3)
|
||||
self.assertTrue(MappingGradChecker(mapping, X).checkgrad())
|
||||
self.assertTrue(MappingGradChecker(mapping, X).checkgrad(verbose=True))
|
||||
|
||||
def test_addmapping(self):
|
||||
m1 = GPy.mappings.MLP(input_dim=3, hidden_dim=5, output_dim=2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue