Giter VIP home page Giter VIP logo

dempster-shafer's Introduction

DempsterShafer

Implementation in Python for Dempster-Shafer algorythm

Algorithm will be explained with examples, including movie genre prediction from reviews(aka observations)

The main concept of Dempster-Shafer is that it is some sort of extension of probabilities, but instead of one value, it uses intervals. Lower limit of an interval - is the BELIEF that something can happen, upper limit of an interval - plausibility, which is calculated as: Pl(A)=1-Bel(non A) A and non A values are calculated INDEPENDENTLY. The summ of beliefs for A and non A can be different from 1. Both values could be 0. If there is no information about A and non A, the interval would be [0,1] (0 belief and 1 plausibility). When more information is available, interval will become smaller, but it will respect this rule: Bel(A)<=P(A)<=Pl(A) If probability is known exactly, interval becomes: Bel(A)=P(A)=Pl(A)

Functionality is splitted in functions: combination, get_mass, get_beliefs, get_plausibility, filter_results, get_final_result

Algorithm is applying iteratively DS rule '' is considered as alias for union for union of all possible elements and should be used where needed

Algorithm is implemented by guidance of this book Inteligenta Artificiala: rationament probabilistic, tehnici de clasificare

Let's imagine that there is a site/resource which collects reviews about movies watched by users. Each user can vote for a specific genre or a set of genres with some confidence (let's say that a review for some movie can look like this: western 60%, action 30%, war 20%) This algorithm can help merge all reviews in order to get some final result.

#TODO: add doi of book #TODO: add link to wiki #TODO: use words splitted by dot for reviews, this can make the algorithm more general

dempster-shafer's People

Contributors

moldoteck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dempster-shafer's Issues

hi

Hello, I would like to ask if there is an article that can refer to your method

Excuse me

Excuse me, the program is in my_ File=Path (pathToFile) reports an error as TypeError: expected str, bytes or os PathLike object, not NoneType, how to modify it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.