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

transpose expects a vector of size 3. But input(1) is a vector of size 4 #19

Open
Madhurananda opened this issue Jun 30, 2023 · 0 comments

Comments

@Madhurananda
Copy link

Hello there,

I came across an error message while running the final site-based prediction: '../scripts/CHEUI_predict_model2.py'
"transpose expects a vector of size 3. But input(1) is a vector of size 4"

I found the fix. In '../scripts/CHEUI_predict_model2.py', change the following
lr_probs = model.predict(prob_vectors)
to:
lr_probs = model.predict(prob_vectors.reshape(prob_vectors.shape[0], 99, 1))

I am not sure if others have also experienced the same, but just wanted to share this anyway.
Hope this helps.

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