comparison _nnet_ops.py @ 69:8c2607f387e6

added softplus, elaborated sigmoid
author James Bergstra <bergstrj@iro.umontreal.ca>
date Mon, 21 Apr 2008 15:23:49 -0400
parents bf0145fa73e8
children 76e5c0f37165
comparison
equal deleted inserted replaced
68:315eb36ff954 69:8c2607f387e6
9 def setUp(self): 9 def setUp(self):
10 numpy.random.seed(9999) 10 numpy.random.seed(9999)
11 def test_elemwise(self): 11 def test_elemwise(self):
12 TT.verify_grad(self, Sigmoid, [numpy.random.rand(3,4)]) 12 TT.verify_grad(self, Sigmoid, [numpy.random.rand(3,4)])
13 13
14 class T_softplus(unittest.TestCase):
15 def setUp(self):
16 numpy.random.seed(9999)
17 def test_elemwise(self):
18 TT.verify_grad(self, Softplus, [numpy.random.rand(3,4)])
14 19
15 class T_CrossentropySoftmax1Hot(unittest.TestCase): 20 class T_CrossentropySoftmax1Hot(unittest.TestCase):
16 def setUp(self): 21 def setUp(self):
17 numpy.random.seed(9999) 22 numpy.random.seed(9999)
18 def test0(self): 23 def test0(self):