Implementation of evidence theory (D-S theory)
Evidence theory is an effective tool to make decision from ambiguity, which has been widely used in target recognition, decision making, optimization problem. Compared with ANN, combination result can be achieved without training process. Traditionally, weight of each evidence should be computed before obtaining a reasonable combination result https://www.onacademic.com/detail/journal_1000040883012810_0724.html, https://www.onacademic.com/detail/journal_1000040419277410_af84.html, A new conflict management method in Dempster–Shafer theory .
This project is the primary version of evidence combination where evidence weight processing is omitted. And the calculation of evidence weight will be emitted in the next version.
Getting Started
Installing
installation via pip is our recommendation:
pip install evi
Combine evidences
Evidence should be created before combination:
e1 = Evi(focal_elements=['a', 'b', ['a', 'c'], ], bpas=[0.2, 0.3, 0.5])
the code above stands for: $$ p(a)=0.2\ p(b)=0.3\ p(a \space or \space c)=0.5 $$
and we can get the combination result via the following code:
e1 = Evi(focal_elements=['a', 'b', ['a', 'c'], ], bpas=[0.2, 0.3, 0.5])
e2 = Evi(focal_elements=['a', 'b', ['a', 'c'], ['b', 'c']], bpas=[0.4, 0.3, 0.1, .2])
combination_result = e1.combine(e2)
print(combination_result)
additionally, the combination of evidence set is:
e1 = Evi(focal_elements=['a', 'b', ['a', 'c'], ], bpas=[0.2, 0.3, 0.5])
e2 = Evi(focal_elements=['a', 'b', ['a', 'c'], ['b', 'c']], bpas=[0.4, 0.3, 0.1, .2])
es = [e1, e2]
print(Evi.combine_list(e1, e2, ))
License
This project is licensed under the MIT License
Acknowledgments
if you wanna to cite this project, the following code may be in your consideration:
@misc{TP-toolbox-web,
author = {qiaokuoyuan},
title = {evi},
howpublished = {\url{https://github.com/qiaokuoyuan/evi}}
}
Metadata
Release files for evi 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evi-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for evi-0.0.2-py3-none-any.whl |
Release files / evi-0.0.2-py3-none-any.whl
| Download URL | evi-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e1fabce0ff1ccbbfc3e84da0e0e67f23a8a7f56ab42352b35a34cecc5c979dc
|
|
BLAKE2b-256 checksum How to use checksums |
744d29b2646827f88544938e8c00e145aeee8c38686dce83b2627e11fa5a233c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Security for evi 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.