autonlab / auton-survival

Auton Survival - an open source package for Regression, Counterfactual Estimation, Evaluation and Phenotyping with Censored Time-to-Events
http://autonlab.github.io/auton-survival
MIT License
315 stars 74 forks source link

Error evaluating AUC #104

Open tommyvcc opened 1 year ago

tommyvcc commented 1 year ago

Dear

Thank you very much for the hard work. I am trying to evaluate the AUC It is working very well for the training and validation dataset , but not work for the test dataset and I am getting the following error:

censoring survival function is zero at on or more time points

I wonder how to fix this problem?

chiragnagpal commented 1 year ago

you are evaluating AUC at a time point which was never seen in the training data. you need to make sure that the maximum time of the test data is less than of the training data.

tommyvcc commented 1 year ago

Thank you very much for your reply Is there a code to do that? I would be very grateful if you can share it.

Thank you very much Looking forward to hearing back from you