Decrease the number of iteration for derivative test

This commit is contained in:
SEOGI KANG
2014-12-08 14:15:48 -08:00
parent 7fa5f6f0f6
commit 5929c3e353
+1 -1
View File
@@ -89,7 +89,7 @@ class IdentityMap(object):
m = abs(np.random.rand(self.nP))
if 'plotIt' not in kwargs:
kwargs['plotIt'] = False
return checkDerivative(lambda m : [self * m, self.deriv(m)], m, **kwargs)
return checkDerivative(lambda m : [self * m, self.deriv(m)], m, num=4, **kwargs)
def _assertMatchesPair(self, pair):
assert (isinstance(self, pair) or