Replies: 1 comment
-
Hi there, it seems to me that what you are trying to predict is an ordinal variable, i.e., you have an order 0 < 1 < 2. For this, you might actually find my CORN and CORAL methods for ordinal regression with deep neural networks helpful: https://github.com/Raschka-research-group/coral-pytorch E.g. here I have an example with PyTorch Lightning that might be useful: https://github.com/Raschka-research-group/coral-pytorch/blob/main/docs/tutorials/pytorch_lightning/ordinal-corn_cement.ipynb |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
want to predict the risk of having a heart attack using deep surv. I have a dataset where three cases are possible: a patient has had only one heart attack, so there is only one row for them; a patient has had two heart attacks, so there are two corresponding rows for them; a patient has not had any heart attacks, so there is one row corresponding to them.
Here's your provided code:
Is this code correct for what I want to do, and more importantly, can the algorithm understand when there are multiple rows for the same patient? please help me
Beta Was this translation helpful? Give feedback.
All reactions