Skip to main content

A Library for Constrained Belief Propagation

Project description

CBP(Constrained Belief Propagation)

Constrained Belief Progapation is a package for solving inference tasks with collective\aggregate evidence.

What is collective\aggregate evidence?

Let us consider a task, estimating dymanics of bird migration. We consider the following different kinds of evidence

  1. Install trackers for interested birds. So we access to the trajectories of sampled birds. We can query the position of interested birds at any time and how they move.

  2. We shoot a video for the birds migration. We can quety the distibution of the birds in the space at any time. However, we do not have access to individual trajectories and how birds move overtime.

The second information is an instance of collective\aggregate evidence, which remove the distinguishability of individuals.

Why do we need collective\aggregate evidence?

  • Easy and cheap to acquire

  • Privacy concern

Sometimes, collective\aggregate evidence is the ony information we access to analysis collective behavior.

How can we represent the special evidence?

In CBP, we represent the special evidence as a special nodes in probabilistic graphical model(PGM), named node with fixed marginal constraints. A hidden markov model with aggregate evidence can be presented as:

image-20200716201949266

The shaded nodes represents the aggregate evidence. We can introduce a simple version:

image-20200716202622245

How to do inference?

In CBP framework, we present a nice elegant connections between multi-marginal optimal transport problems and inference problem for PGM. We implement algorithms similar to the standard belief propagation. In CBP, we present Iterative Scaling Belief Propagation and Contrained Norm-product two algorithms. More details can be find the paper.

Citation

@article{haasler2020multi,
  title={Multi-marginal optimal transport and probabilistic graphical models},
  author={Haasler, Isabel and Singh, Rahul and Zhang, Qinsheng and Karlsson, Johan and Chen, Yongxin},
  journal={arXiv preprint arXiv:2006.14113},
  year={2020}
}

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

pycbp-0.3.1.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

pycbp-0.3.1-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file pycbp-0.3.1.tar.gz.

File metadata

  • Download URL: pycbp-0.3.1.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pycbp-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6d63585d198a682a71acd15d81f88f93cda2d42b8ad245d2d4e7d1803d26233c
MD5 889068de03799bbac4a21541766a7731
BLAKE2b-256 1748963cd9dc64b5f35c9e19925504edd8cfc7998b536ac788e931cccf5a574b

See more details on using hashes here.

File details

Details for the file pycbp-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pycbp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pycbp-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c40a493d5a5d637c0a840c9e79bc36caaa08401c7ed9bdad8d76f6ce46f74c8c
MD5 82442f95edf4a55155e652cfc2be5cb2
BLAKE2b-256 9698e20603680eb8e4b1014368eae2866d86966612774c8da5f329fead13ede1

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