-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ENH: Sparse matrix handling with ICAR prior #7406
Comments
] |
You want W wrapped in a |
@ricardoV94 Running the latest version of multivariate.py, I get the following error message:
|
I found the error. The pymc 5.16.2 on conda-forge differs from the Github main repo in important ways. It's missing |
Before
After
Context for the issue:
The CAR prior allows the user to input a sparse matrix, but the ICAR prior does not have this functionality. For large spatial adjacency matrices, sparsity is critical to ensure efficient memory allocation.
The above solution makes minor revisions to run checks and generate the node tuple from a sparse matrix. It may be necessary to place it in an if statement, similar to the approach used in the CAR class. This version runs for me on a test dataset.
The text was updated successfully, but these errors were encountered: