Code Monkey home page Code Monkey logo

bayesjs-editor's Introduction

Build Status Coverage Status Commitizen friendly

BayesJs Editor

An editor for Bayesian Networks built in React that uses Bayes' theorem.

A Bayesian network is a probabilistic graphical model (a type of statistical model) that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG). Bayesian networks are ideal for taking an event that occurred and predicting the likelihood that anyone of several possible known causes was the contributing factor. For example, a Bayesian network could represent the probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute the probabilities of the presence of various diseases.

In probability theory and statistics, Bayes’ theorem describes the probability of an event, based on prior knowledge of conditions that might be related to the event. For example, if cancer is related to age, then, using Bayes’ theorem, a person's age can be used to more accurately assess the probability that they have cancer than can be done without the knowledge of the person’s age.

Bayes' Theorem is Mathematically stated as the following equation:

Bayes' theorem formula

where A and B are events and P(B)!= 0

  • P(A | B) is a conditional probability: the likelihood of event A occurring given that B is true.
  • P(B | A) is also a conditional probability: the likelihood of event B occurring given that A is true.
  • P(A) and P(B) are the probabilities of observing A and B independently of each other; this is known as the marginal probability.

How to setup

git clone [email protected]:bayesjs/bayesjs-editor.git
cd bayesjs-editor
yarn // or npm install

How to test

To execute the unit test you can run:

yarn run test:unit

And to execute the integration test you can run when the project not running:

yarn run test:e2e

or, in case you wanna open the cypress while the project is running, in another terminal run:

yarn run cypress open

How to run

yarn start

License

MIT

bayesjs-editor's People

Contributors

nolleto avatar fhelwanger avatar ufocoder avatar netochaves avatar eliasreis54 avatar tanushree57 avatar abnersajr avatar iam-abbas avatar edumoreira1506 avatar anbusse avatar istumpf avatar ravitejacms avatar dependabot[bot] avatar

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.