Skip to content

Commit

Permalink
Deleted debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
iuliivasilev committed Oct 29, 2024
1 parent f6d9ab5 commit 84b930d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions survivors/external/nonparametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ def fit(self, durations, right_censor, weights=None):

dur_ = np.searchsorted(self.timeline, durations)
hist_dur = np.bincount(dur_, weights=weights)
print(dur_, dur_.dtype)
print(right_censor, right_censor.dtype)
print(weights, weights.dtype)
self.hist_cens = np.bincount(dur_, weights=right_censor * weights)
self.cumul_hist_dur = np.cumsum(hist_dur[::-1])[::-1]
self.survival_function = np.hstack([1.0, np.cumprod((1.0 - self.hist_cens / (self.cumul_hist_dur)))])
Expand Down

0 comments on commit 84b930d

Please sign in to comment.