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

AUC time horizon #103

Open tommyvcc opened 1 year ago

tommyvcc commented 1 year ago

Thank you so much for the hard work I have one question regarding the AUC metric. And the time horizon. The AUC is reported as an array and the times are reported as an array.

For example, if the time intervals are 0 to 1 , 1 to 2 and 2 to 3.

And the array is ( 0,1,2,3)

While the AUC is 0.6, 0.7, 0.8

So the array is (0.6,0.7.0.8)

Does this mean that the AUC for the period 0 till 3 is 0.8? Or the AUC for the period 2 to 3 is 0.8?

matteo4diani commented 10 months ago

auton_survival uses scikit-survival for metrics internally. Namely the metrics.cumulative_dynamic_auc: you can check in their docs https://scikit-survival.readthedocs.io/en/stable/api/generated/sksurv.metrics.cumulative_dynamic_auc.html#sksurv-metrics-cumulative-dynamic-auc

As this is a question it would be better suited for the "Discussions" section: https://github.com/autonlab/auton-survival/discussions. Keep in mind that answers may take a while, but if you want to increase your chances to get one please provide code snippets and detailed explanations/logs in your questions and issues.