Skip to content

Commit

Permalink
owkaplanmeier: cast to a float before fitting the Kaplan-Meier curve.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakaKokosar committed Jan 12, 2021
1 parent 1fe2cd3 commit 6d20119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/survival_analysis/widgets/owkaplanmeier.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def generate_curve_coordinates(timeline, probabilities):
return np.array(x), np.array(y)

def __init__(self, time, events, label=None, color=None):
self._kmf = KaplanMeierFitter().fit(time, events)
self._kmf = KaplanMeierFitter().fit(time.astype(np.float64), events.astype(np.float64))

self.label: str = label
self.color: List[int] = color
Expand Down

0 comments on commit 6d20119

Please sign in to comment.