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 .
Sample code
from sbmsdp import sbm2 , sdp2
G = sbm2 ( 100 , 16 , 4 )
X = sdp2 ( G )
print ( X )
Reference
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages .
Source Distribution
File details
Details for the file sbmsdp-0.1.tar.gz
.
File metadata
Download URL:
sbmsdp-0.1.tar.gz
Upload date: Mar 21, 2021
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
Hashes for sbmsdp-0.1.tar.gz
Algorithm
Hash digest
SHA256
eb6ee814bdb423a9fcb0b48ff80017e8a6838d1083698c1c6a988b7c6e95c67c
Copy
MD5
f9f8346026407233885ad8c6d340d17f
Copy
BLAKE2b-256
a48e0a3e06dee8f7e2bc20fd69ddda0dcdf3ab553a829841edb5576c8f4fa392
Copy
See more details on using hashes here.