Bayesian spatial regression of communities
Project description
SpRCom
sprcom
stands for Spatial Regression of Communities and is a statistical package designed to streamline the interpretation and modeling of very high dimensional binary and count-valued data. The underlying model assumes a low-dimensional latent structure via communities or clusters that leads to a parsimonious model. sprcom
can also account for the dependence of these communities on covariates! A number of utility and plotting functions are included to help visualize your results. sprcom
is a wrapper for a PyMC3 model and you can use any PyMC3 estimation method with it including Hamiltonian Monte Carlo and ADVI.
covariates, response, adjacency = load_data(...)
n_communities = 5
model = spatial_community_regression(covariates, response, adjacency,n_communities)
with model:
trace = pm.sample()
...
We've included documentation to help you get up and running. Check out the florabank1-tutorial
notebook for more details!
For questions or comments please contact Christopher Krapu at ckrapu@gmail.com
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sprcom-0.2.tar.gz
.
File metadata
- Download URL: sprcom-0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f38d0ddedb457881a459078fe602f3cc4850ac3cca90a7a0f3907d3243d31c |
|
MD5 | 084476c7ce236d862ad7a2dd5dc13563 |
|
BLAKE2b-256 | 1d9f08c1528779fed16358f3ffc9cb5d67268bc4bc3acb158586c7c8d5c1803d |