Skip to content

Commit

Permalink
Add zero weight for censored
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC committed Jul 12, 2024
1 parent ae2d825 commit 2a3cd76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/examples/example_survival.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
" inverse_prob_censoring_weight = pd.Series(\n",
" index=outcome.index, data=inverse_prob_censoring_weight.values\n",
" )\n",
" inverse_prob_censoring_weight[censored.astype(bool)] = 0\n",
"\n",
" return inverse_prob_censoring_weight\n",
"\n",
Expand Down

0 comments on commit 2a3cd76

Please sign in to comment.