Closed rperea14 closed 3 years ago
Hi!
This issue can occur when there is missing data. Easiest way to both check and address this would be to use the ZScoreSustainMissingData
variant that was recently merged/released.
Would you be able to try using that instead and see if that fixes it?
As well as whether you have any missing values in your dataset, it would also be useful to know the range of the data for each biomarker and the values of Z_max you used. This error can also occur if there are values in your data that are much larger than Z_max.
Thank you @ayoung11, my problem was exactly related to data ranges. One of my columns in my data variable [eg. one input feature] had very high ranges compared to others. After normalizing this column, I was able to successfully run the model.
Hi all, After I initialize the ZSuStaIn model, I run into the following
Index out of bounds
exception:My current ZSustaIn class initialization is as followed:
After spending some time attempting to debug, I believe the issue is related to the following functions returning a nan array type:
f_opt = (np.squeeze(sum(sum(p_perm_k_norm))) / sum(sum(sum(p_perm_k_norm)))).reshape(N_S, 1, 1)
Now, this issue occurs randomly on the nth iteration, as replicated when running my script multiple times. Any insights on how to fix/troubleshoot this problem? Thanks in advance