semi-definite programming for the recovery of stochastic block model
Project description
SBMSDP2
This repository uses semi-definite programming to recover labels of stochastic block model.
Note
The code in this repository can only recover symmetric SBM with two underlining communities. Symmetric SBM means that the two communities have equal size.
The SBM generator is $\textrm{SBM}(n, \frac{a \log n}{n}, \frac{b \log n}{n})$.
Sample code
from sbmsdp import sbm2, sdp2
G = sbm2(100, 16, 4)
X = sdp2(G)
print(X)
Reference
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
sbmsdp-0.1.tar.gz
(2.1 kB
view details)
File details
Details for the file sbmsdp-0.1.tar.gz
.
File metadata
- Download URL: sbmsdp-0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6ee814bdb423a9fcb0b48ff80017e8a6838d1083698c1c6a988b7c6e95c67c |
|
MD5 | f9f8346026407233885ad8c6d340d17f |
|
BLAKE2b-256 | a48e0a3e06dee8f7e2bc20fd69ddda0dcdf3ab553a829841edb5576c8f4fa392 |