Skip to main content

Implementation of DS theory (D-S evidence theory)

Project description

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}}

}

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

evi-0.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file evi-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: evi-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for evi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1fabce0ff1ccbbfc3e84da0e0e67f23a8a7f56ab42352b35a34cecc5c979dc
MD5 6711ce2f52621deb1152d9acb3df8132
BLAKE2b-256 744d29b2646827f88544938e8c00e145aeee8c38686dce83b2627e11fa5a233c

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