Skip to content

Commit

Permalink
Update dcph_utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirag Nagpal committed Jul 10, 2022
1 parent f86d654 commit 0b26fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auton_survival/models/cph/dcph_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def predict_survival(model, x, t=None):
if isinstance(t, (int, float)): t = [t]

model, breslow_spline = model
lrisks = model(x).detach().numpy()
lrisks = model(x).detach().cpu().numpy()

unique_times = breslow_spline.baseline_survival_.x

Expand Down

0 comments on commit 0b26fb6

Please sign in to comment.