Skip to main content

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.

Metadata

Release files for sprcom 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sprcom 0.2
File Size Uploaded
sprcom-0.2.tar.gz 1.8 kB Details

Release files / sprcom-0.2.tar.gz

Download URL sprcom-0.2.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
10f38d0ddedb457881a459078fe602f3cc4850ac3cca90a7a0f3907d3243d31c
BLAKE2b-256 checksum
How to use checksums
1d9f08c1528779fed16358f3ffc9cb5d67268bc4bc3acb158586c7c8d5c1803d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page