コード例 #1
0
 def test_repr_with_fitter(self, sample_lifetimes):
     T, C = sample_lifetimes
     bf = BaseFitter()
     bf.event_observed = C
     assert bf.__repr__(
     ) == '<lifelines.BaseFitter: fitted with %d observations, %d censored>' % (
         C.shape[0], C.shape[0] - C.sum())
コード例 #2
0
 def test_repr_without_fitter(self):
     bf = BaseFitter()
     assert bf.__repr__() == '<lifelines.BaseFitter>'
コード例 #3
0
ファイル: test_estimation.py プロジェクト: nerdless/lifelines
 def test_repr_with_fitter(self, sample_lifetimes):
     T, C = sample_lifetimes
     bf = BaseFitter()
     bf.event_observed = C
     assert bf.__repr__() == '<lifelines.BaseFitter: fitted with %d observations, %d censored>' % (C.shape[0], C.shape[0] - C.sum())
コード例 #4
0
ファイル: test_estimation.py プロジェクト: nerdless/lifelines
 def test_repr_without_fitter(self):
     bf = BaseFitter()
     assert bf.__repr__() == '<lifelines.BaseFitter>'