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
BinomialBayesMixedGLM predict function returns non-1D array #6158
Comments
What is the dtype of |
It's int64. However it is categorical, its just 1 or 0 depending on graduation. |
Turn it into a plain |
As in dont have the formula be The current formula already lacks the As a note:
|
You are getting float since Patsy is encoding your categorical as two columns of floating point 0.0 or 1.0 values. |
Sorry I'm unclear what you are suggesting to do to fix it. Converting
|
I just had the same issue. Instead of using model.predict, you probably wanna try result.predict? |
Describe the bug
I tried to use BinomialBayesMixedGLM to predict some values so that I can assess the prediction capability of the model. However, when putting in sample data, the output is not 1D predictions but instead the same shape as the input data. This seems to be a bug since the expected output is a 1-dimensional array of predicted values.
Code Sample, a copy-pastable example if possible
The text was updated successfully, but these errors were encountered: