Skip to main content

Implementation of Stochastic Block Model with several inference strategy (VBEM, VEM, Natural conjugate gradients)

Project description

SBM package

Installation

To install this package, run

python -m pip install sbm-vbem

Quick use of the SBM function

In this package, I implemented 2 different estimations : a variational-bayes EM (it's on the way) and a variational-EM. The variational-bayes EM can be optimized in two ways : setting the lagrangian to zero, referred to as the VBEM algorithm, or using a natural-conjugate gradient method, referred to as the NCG algorithm.

The main function sbm is only implemented for directed graphs (for now) and can be used this way:

  • with no init given : sbm(adj, algo='vbem', init='kmeans')
  • with an already computed init : sbm(adj, algo='vbem', tau_init=tau)

This is a joint work with Pr. Pierre Latouche and Pr. Charles Bouveyron.

Project details


Download files

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

Source Distribution

sbm_vbem-0.0.11.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sbm_vbem-0.0.11-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file sbm_vbem-0.0.11.tar.gz.

File metadata

  • Download URL: sbm_vbem-0.0.11.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for sbm_vbem-0.0.11.tar.gz
Algorithm Hash digest
SHA256 9e23cd272c489db4f51c48efff184ca0421784d6a89cc76eea5210376609fa47
MD5 184b500ec883c671e2ff1ab21cd36f98
BLAKE2b-256 f26feb8409be0ce045410f65b2a48e5443c80a067dc911a35aa6bdcd18745791

See more details on using hashes here.

File details

Details for the file sbm_vbem-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: sbm_vbem-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for sbm_vbem-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3dcdc222f936a34b3a416ad9340f5e1309fdff118cbb88939295ced00ad6bae1
MD5 ddbae489947289dea7dd062ad6782d40
BLAKE2b-256 93c83720d8ed24bca95a7331d72a5069d74ee8130e9150e2df7f16e0005c610c

See more details on using hashes here.

Supported by

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