Skip to content

Commit ffeb6ad

Browse files
this test is too unstable, rm-ing
1 parent 26eb285 commit ffeb6ad

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lifelines/tests/test_suite.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,6 @@ def test_kmf_left_censorship_stats(self):
429429
kmf = KaplanMeierFitter()
430430
kmf.fit(T, C, left_censorship=True)
431431

432-
def test_conditional_time_to(self):
433-
T = np.random.exponential(1, 5000)
434-
v = np.log(2)
435-
kmf = KaplanMeierFitter()
436-
kmf.fit(T)
437-
life_expectancy = kmf.conditional_time_to()
438-
assert (life_expectancy.ix[0] - v) < 0.01
439-
440432
def kaplan_meier(self, censor=False):
441433
km = np.zeros((len(list(self.lifetimes.keys())), 1))
442434
ordered_lifetimes = np.sort(list(self.lifetimes.keys()))

0 commit comments

Comments
 (0)