Skip to main content

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.

Release files for sbmising 0.1

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

Source distribution (sdist)

Source distribution for sbmising 0.1
File Size Uploaded
sbmising-0.1.tar.gz 3.1 kB Details

Release files / sbmising-0.1.tar.gz

Download URL sbmising-0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
01e5ed31cfb12e86cbec50187be199a83f6be346d34e3c26d368f205d002ef9f
BLAKE2b-256 checksum
How to use checksums
8883770daff27b8fb904850ef97713a78bde86eee5e5e95de62f517fb2ea1c0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1 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