pycox
pycox copied to clipboard
Survival analysis with PyTorch
Hi, I built three LogisticHazard models and was trying to make an ensemble of them along the lines of: https://discuss.pytorch.org/t/combine-two-model-on-pytorch/47858/5 However this failed probably since the ensemble did not include...
Hello, I'd like to build a model which takes images and predicts overall survival time as continuous. For that reason, I followed the model shown in this jupyter notebook [04_mnist_dataloaders_cnn.ipynb](https://nbviewer.jupyter.org/github/havakv/pycox/blob/master/examples/04_mnist_dataloaders_cnn.ipynb)...
Hi, How do we find out the variance or confidence intervals of the evaluation metric obtained? eg. C^td(Confidence interval), IBS(CI) etc.
Hi there, I am looking for the codes related to hyperparameter tuning for the DeepSurv method in the following example, but I am not able to find it. https://github.com/havakv/pycox/blob/master/examples/cox-ph.ipynb I...
Hi, thanks for the repo! It looks from [the article](https://arxiv.org/pdf/1907.00825.pdf) that CoxTime can do time-dependent covariates. Is this functionality implemented in pycox? If so, do you have any examples on...
Make an example notebook on how to use callbacks for added monitoring/functionality. Examples could include 1. Learning rate schedulers such as in #49 2. Monitor metrics such as Concordance #49...
Hi, I ran into the following assertion error when computing the c-index for the discrete MTLR method. `assert durations.shape[0] == surv.shape[1] == surv_idx.shape[0] == events.shape[0]` I suppose the error is...
Hi, the following code ``` num_durations = 10 labtrans = MTLR.label_transform(num_durations) get_target = lambda df: (df['time'].values, df['event'].values) y_train = labtrans.fit_transform(*get_target(data_train)) y_val = labtrans.transform(*get_target(data_val)) y_test = labtrans.transform(*get_target(data_test)) ``` gives me the...
Hi, many thanks for implementing this easy to use and flexible package. I have a short question regarding the implementation of the partial likelihood function of deepsurv (`cox_ph_loss_sorted`). In the...
the sub(gamma) and add(gamma) will finally eliminate each other in math. ``` def cox_ph_loss_sorted(log_h: Tensor, events: Tensor, eps: float = 1e-7) -> Tensor: if events.dtype is torch.bool: events = events.float()...