style="color: #666666">0</span>]

<span style="color: #408080; font-style: italic"># Saving the time of event</span>
t <span style="color: #666666">=</span> T_test[k]

<span style="color: #408080; font-style: italic"># Computing the Survival function for all times t</span>
survival <span style="color: #666666">=</span> csf<span style="color: #666666">.</span>predict_survival(X_test<span style="color: #666666">.</span>values[k, :])<span style="color: #666666">.</span>flatten()
actual <span style="color: #666