Skip to main content

Evidence Theory Tools — utilities for Dempster-Shafer theory of belief functions

Project description

evtools

Evidence Theory Tools — a growing Python library of utilities for working with belief functions in the Dempster-Shafer theory of evidence.

Modules

Module Description
evtools.conversions Conversions between all standard belief function representations

evtools.conversions

Converts between all standard representations of belief functions using the Fast Möbius Transform (FMT) from Smets (2002) and Denoeux (2008).

Supported representations

Symbol Name
m Basic Belief Assignment (mass function)
bel Belief function
pl Plausibility function
b Commonality function
q Implicability function
v Conjunctive weight function
w Disjunctive weight function

Every conversion is available as a <source>to<target> function. For example mtob, pltom, qtow, beltov, etc.


Installation

pip install evtools

Or from source:

git clone https://github.com/<your-username>/evtools.git
cd evtools
pip install -e .

Quick start

import numpy as np
from evtools.conversions import mtob, mtopl, mtobel, mtow

# Mass function over a 2-atom frame {a, b}
# Index order: ∅, {a}, {b}, {a,b}
m = np.array([0.0, 0.3, 0.5, 0.2])

print(mtob(m))    # commonality function
print(mtopl(m))   # plausibility function
print(mtobel(m))  # belief function
print(mtow(m))    # disjunctive weight function

Running tests

pip install -e ".[dev]"
pytest tests/

References

  • Smets, P. (2002). The application of the transferable belief model to diagnostic problems. International Journal of Intelligent Systems.
  • Denoeux, T. (2008). Conjunctive and disjunctive combination of belief functions induced by non-distinct bodies of evidence. Artificial Intelligence.

License

MIT

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

evtools_dst-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

evtools_dst-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file evtools_dst-0.1.0.tar.gz.

File metadata

  • Download URL: evtools_dst-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for evtools_dst-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b40b7802ad229308b25cc6bf7380bc3d03bc3a6dfdc918e66c4b6ea047b32690
MD5 a8021a5d253d33fe7b7b2e4df859766c
BLAKE2b-256 2dc4a3549db1e5b4cdf2495a8457476e2a29d7eb76b7a5d9ed8c91684a191692

See more details on using hashes here.

File details

Details for the file evtools_dst-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: evtools_dst-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for evtools_dst-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62941d13ff81a61cc1955c8f25ff81fee2a44810faff6f4fe7079075950b3993
MD5 f58a00e0c6b5cfbd37cc3091bdf0e8e6
BLAKE2b-256 8a8f5a3307cc862d92d6bf232484a254446c92fdef72b23e69c32f374a2dc543

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