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

Error when maximum number of follow-up equals one(1) #6

Open
2mLi opened this issue May 5, 2022 · 0 comments
Open

Error when maximum number of follow-up equals one(1) #6

2mLi opened this issue May 5, 2022 · 0 comments

Comments

@2mLi
Copy link

2mLi commented May 5, 2022

Dear author/To whom it may concern,

I hope my message finds you well. I ran into problem when I wanted to apply the code in this repo on a "survival" dataset where each patient has "only one" follow-up that contained patient baseline characteristics - essentially, what I wanted to do was to test if the DDH model could be used to predict patient survival time with patient baseline characteristics, like conventional survival models (eg. Cox) did. The code was terminated with the following error:

TensorArray has size zero, but element shape [?,x] is not fully defined. Currently only static shapes are supported when packing zero-size TensorArrays.

(x is a positive integer and probably has something to do with my dataset)

This error ONLY occured when the training dataset contained exactly one and only one follow-up for each patient. Adding even just one repetitive measurement to the training set would resolve the error. I think this might be something to do with how the training set was structured in the Tensorflow Array, but I have very limited experience with Tensorflow-based deep learning and there was no much information about this error on the internet.

Any help regarding my question would be greatly appreciated.

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

No branches or pull requests

1 participant