United Statesjg-you/noisy-networks-measurements
Noisy network measurement with stan
noisy-networks-measurements
Bayesian reconstruction of networks from noisy measurements, with examples.
The theory explaining these models is presented in "Bayesian inference of network structure from unreliable data", by J.-G. Young, G. T. Cantwell and M.E.J. Newman.
Here we provide several examples of models coded in Stan, as well as a tutorial reproducing one of the case studies of the paper.

Models
The Stan models work with any Stan interface (Python, R, Julia, etc.).
- Examples: Standard models for Bernoulli/Poisson measurements with ER or SCM network priors.
- Templates: Extensible templates for custom models without writing boilerplate code.
Python setup
Python is our preferred way to interact with Stan.
To follow our exact approach, install dependencies as follows.
uv sync # or: pip install cmdstanpy numpy
uv sync --extra tutorial # includes matplotlib, networkx, pandas, seaborn, jupyter
uv run python -m cmdstanpy.install_cmdstan # install the Stan compiler (one-time setup, may take a few minutes)
You're then ready to follow the tutorial.
Paper
If you use this code, please consider citing:
"Bayesian inference of network structure from unreliable data"
J.-G. Young, G. T. Cantwell and M.E.J. Newman
J. Complex Netw. 8, cnaa046 (2021)
Author
Code by Jean-Gabriel Young. Don't hesitate to get in touch at jean-gabriel.young@uvm.edu, or via the issues!
Similar Projects
Discover other similar projects and AI models.
Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
A Julia package for the creation, manipulation and analysis of the structure, dynamics and functions of multilayer graphs.
A high-throughput and memory-efficient inference and serving engine for LLMs
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...