Skip to main content

simulated annealing for the recovery of symmetric stochastic block model

Project description

SBM Ising

This repository uses Ising model (simulated annealing) to recover labels of stochastic block model.

Note

The code in this repository can only recover symmetric SBM. Symmetric SBM means that the communities have equal size.

The SBM generator is $\textrm{SBM}(n, k, \frac{a \log n}{n}, \frac{b \log n}{n})$.

Sample code

from sbmising import SIBM, sbm_graph
G = sbm_graph(100, 2, 16, 4)
X = SIBM(G, k=2)
print(X)

Reference

[1] Zhao, Feng, Min Ye, and Shao-Lun Huang. "Exact Recovery of Stochastic Block Model by Ising Model." Entropy 23.1 (2021): 65.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbmising-0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page