[Scipy-svn] r2311 - trunk/Lib/sandbox/models

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Nov 8 00:01:36 CST 2006


Author: timl
Date: 2006-11-08 00:01:28 -0600 (Wed, 08 Nov 2006)
New Revision: 2311

Modified:
   trunk/Lib/sandbox/models/cox.py
Log:
cosmetic fixes

Modified: trunk/Lib/sandbox/models/cox.py
===================================================================
--- trunk/Lib/sandbox/models/cox.py	2006-11-08 00:20:45 UTC (rev 2310)
+++ trunk/Lib/sandbox/models/cox.py	2006-11-08 06:01:28 UTC (rev 2311)
@@ -100,7 +100,6 @@
             self.risk[t] = N.compress([s.atrisk(t) for s in self.subjects],
                                       N.arange(self.design[t].shape[0]),axis=-1)
     def __del__(self):
-
         shutil.rmtree(self.cachedir, ignore_errors=True)
 
     def logL(self, b, ties='breslow'):
@@ -195,7 +194,7 @@
     n = 100
     X = N.array([0]*n + [1]*n)
     b = 0.4
-    lin = 1. + b * X
+    lin = 1 + b*X
     Y = R.standard_exponential((2*n,)) / lin
     delta = R.binomial(1, 0.9, size=(2*n,))
 



More information about the Scipy-svn mailing list