Skip to content

smarianimore/causality_detection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Causality Detection

Author: Kanvaly Fadiga

This repository implements our causal relation learning algorithm and also allows us to explain events. To facilitate its use we have used streamlit which allows us to create a web interface with which we can interact.

Installation

my python version: Python 3.8.5

after activating your python environment, install required package using this command:

pip install -r requirements.txt

Usage

  • Web app: To run the web app run python main.py

  • Simple example: we also provide a simple python code example.py that learn a simple network. just run python example.py and it learn the graph and plot the difference with the groundthruth.

Architecture

  • CausalLeaner in causal_learner.py:

contains the algorithm that learn causal relationship using intervention and interaction.

  • BayesianNetwork in network.py:

Our implementation og bayesian network. it contain function to perform do operation and data generation

  • most_probable_explanation and belief_propagation in explanation.py:

perform the two methods to do abduction in a bayesian network

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%