Skip to content

Commit

Permalink
remove unused code, added comments, simulation in lifelines
Browse files Browse the repository at this point in the history
  • Loading branch information
SoniaDem committed Dec 13, 2024
1 parent fbfdb99 commit 0d3905b
Show file tree
Hide file tree
Showing 2 changed files with 546 additions and 79 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks/loss_time_covariates.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _partial_likelihood_time_cox(

#same step as in normal cox loss, just again, we consider Z(tau_j) where tau_j denotes event time to subject j
log_denominator_tj = torch.logcumsumexp(log_hz_sorted_tj.flip(0), dim=0).flip(0)

return (log_hz_sorted_tj - log_denominator_tj)[event_sorted]


Expand Down
Loading

0 comments on commit 0d3905b

Please sign in to comment.