Survival, Hazard, Regression, Data Science, Hands On Tutorials.
set. We have already loaded the data set into memory. Let’s create a subset that contains the columns of our interest. df2 = df[['AGE', 'PRIOR_SURGERY', 'TRANSPLANT_STATUS', 'SURVIVAL_TIME', 'SURVIVAL_STATUS']] Let’s carve out the training and test data sets. import numpy as np mask =