Back to Trending
RepositoryStanUSUnited States
jg-you

jg-you/noisy-networks-measurements

Noisy network measurement with stan

56stars
5forks
0issues
2views

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.

RepositoryC++
stan-dev/stan

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.

2.8k
Dec 1, 2026
RepositoryR
paul-buerkner/brms

brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan

1.4k
Nov 27, 2026
RepositoryR
stan-dev/rstan

RStan, the R interface to Stan

1.1k
Nov 23, 2026
RepositoryR
stan-dev/shinystan

shinystan R package and ShinyStan GUI

201
Sep 28, 2026
RepositoryJulia
JuliaGraphs/MultilayerGraphs.jl

A Julia package for the creation, manipulation and analysis of the structure, dynamics and functions of multilayer graphs.

135
Mar 13, 2026
RepositoryJupyter Notebook
DataForScience/Networks

Network and Graph Algorithms From Scratch

112
Oct 29, 2022
RepositoryPython
vllm-project/vllm

A high-throughput and memory-efficient inference and serving engine for LLMs

98.0k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

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...

♥0
157.6M
Jun 1, 2026