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
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 details)
File details
Details for the file sbmising-0.1.tar.gz
.
File metadata
- Download URL: sbmising-0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01e5ed31cfb12e86cbec50187be199a83f6be346d34e3c26d368f205d002ef9f |
|
MD5 | e90265c2fb457923000191be119ea928 |
|
BLAKE2b-256 | 8883770daff27b8fb904850ef97713a78bde86eee5e5e95de62f517fb2ea1c0c |