Commit cdc0494
committed
15-dgp-dqcp: extend survival curves with flat KM tail to match website
Port the tmax handling from the cvxr_docs survival-ordering example so the
tutorial plot matches the website figure. grp_counts() now records the last
observation time per group as a tmax attribute, and step_rc() extends each
step curve flat out to that time when it exceeds the last failure time. The
GP fit is unchanged; only the right-hand extent of each curve differs.1 parent 9772a9e commit cdc0494
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
169 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
0 commit comments