-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to prepare model input from my own data? #2
Comments
Hi there, After your data is formatted as that, you can refer to especially the condition under
to set the Moreover, since this survtrace method is built based on transformers, we need a GPU device with like RTX 3060 or sth to train it efficiently. Feel free to reach out if there is a further question.😀 |
Thanks for your response!! I'll try it :) |
Hi Zifeng, |
Hi, you can use these four functions to get the predicted hazard/risk/survival rate for patients. On Line 277 in 0d40f37
and below. It outputs hazard/risk/survival rate on each discrete time point corresponding to the time horizons we set Line 7 in 0d40f37
It can be used like
for more details please refer to the evaluation function SurvTRACE/survtrace/evaluate_utils.py Line 6 in 0d40f37
|
Thanks a lot!! It's really helpful for me 😀 |
It's my pleasure~ welcome to star our projects if it's helpful 😇 |
Surely!! |
Hi Zifeng,
How should I solve this problem? Or this problem does not affect the performance of the model and can therefore be ignored? I am eagerly looking forward to your reply. P.S. ,part of my data are listed below, in which I show the patients who has the shortest duration in my data: <style> </style>
|
P.S. I figure that maybe a patients with shortest duration shoul not be "Death"? So I also deleted this patients and unfortunately I encountered this warnings again..😂 |
I check the code where this warning raises on Lines 77 to 84 in 0d40f37
Before the operation on line 81, the patient has duration < 389.500000125 is actually assigned index 1 instead of 0. So, this warning raises because Could you add a break point there and |
Thanks Zifeng! I checked there and found the output is "92.00000018". |
Do you mean there is only one output and it's not zero? It's weird 😂 don't know what happened. But if there is only one output, only this single data will be deleted and I guess it will not influence the results much 😇 |
Thanks! I checked my inputed data and processed data and found that the samples size seemed to change very little. 😀 |
Hi Dr. Wang,
I'm a surgeon in China. I'm really interested in your SurvTrace and i'd like to apply it on my research to predict the prognosis of cancer patients. However, I do just learned python not long ago. Could you show me how to prepare the model input from local files? E.g. A matrix (mxn), the row is patients ID, the col containing overall survival time, events, and features for modeling.
The text was updated successfully, but these errors were encountered: