Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the origin of time for predict function? #94

Closed
mateuszbuda opened this issue Feb 20, 2020 · 4 comments
Closed

What is the origin of time for predict function? #94

mateuszbuda opened this issue Feb 20, 2020 · 4 comments
Labels

Comments

@mateuszbuda
Copy link

mateuszbuda commented Feb 20, 2020

Based on the docs:

If samples are ordered according to their predicted risk score (in ascending order), one obtains the sequence of events, as predicted by the model. This is the return value of the predict() method of all survival models in scikit-survival.

In my use case I need to predict the order in which individuals will die (in absolute/global time frame) given that they survived till the end (last day) of study.
I interpret predicted risk scores (using predict() function) as relative time to events.
However, it's not clear to me what is the origin of time for them?
Is it the time of birth for each individual (which would require adjusting risk scores in my use case), or is it the end of study time?

@poganyg
Copy link

poganyg commented Mar 3, 2020

From my understanding the risk scores are inversely related to the time-to-events. The model assigns risk scores to patients (predictions) and if it is working well then a patient with a higher risk score should have a lower time-to-event (which is essentially the label).

The time-to-event will be defined by your dataset I imagine. If your use-case is a clinical study, then the time-to-event will likely be the time from the beginning of the study until an event or censoring.

I don't think that this implementation is returning anything involving time, only risk factors.

@sebp
Copy link
Owner

sebp commented Mar 4, 2020 via email

@sebp sebp closed this as completed Mar 7, 2020
@sebp sebp added the question label Oct 6, 2020
@konradsemsch
Copy link

@sebp - isn't there any way to get from the output of predict to an expected lifetime value? Assuming one knows the survival curve for a given dataset? The lifetime probably cannot be inferred by normalising the score to the min/ max value from the survival curve?

@sebp
Copy link
Owner

sebp commented Apr 1, 2021

@konradsemsch It's not implemented yet, but #190 discusses how this could be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants