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.12.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.12-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbm_vbem-0.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 c60c373e7a8e33bc3bcf0a672741141d92604b3b9e1f3df93b5c8b0f5e2f3776
MD5 22e29315fb4f9874683fddefdf48334c
BLAKE2b-256 0e1bc94cf19882ab9a0917c1869637a80a3ce3c34dc6ad50befc58b42c9d61cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbm_vbem-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b5afde97c709bc787dfbaa5da83aa1d62c924b8c9a13a1f3e1c2d0bd0ac75e5e
MD5 f03633b8d4a82d25754d37d713ffac6d
BLAKE2b-256 4109eb87cefed2b0b2ccdd36b9ce8cb51b9bcd5ab9514ae19a94693bf59dd8bc

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