Coder Social home page Coder Social logo

luciferjason / causal_discovery_for_time_series Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ckassaad/causal_discovery_for_time_series

0.0 0.0 0.0 56.25 MB

Causal discovery for time series

Shell 0.01% C++ 0.30% Python 24.23% C 0.01% R 3.93% MATLAB 3.35% M 0.01% Makefile 0.01% HTML 32.78% Batchfile 0.01% Jupyter Notebook 35.24% Cython 0.13% Roff 0.01%

causal_discovery_for_time_series's Introduction

causal_discovery_for_time_series

Package to test causal discovery algorithm on simulated and real data

THIS SOURCE CODE IS SUPPLIED AS IS WITHOUT WAR RANTY OF ANY KIND AND ITS AUTHOR AND THE JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH JAIR AND JAIRS PUBLISHERS AND DISTRIBUTORS DISCLAIM ANY AND ALL WARRANTIES INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTIES OR NON INFRINGEMENT THE USER ASSUMES ALL LIABILITY AND RESPONSIBILITY FOR USE OF THIS SOURCE CODE AND NEITHER THE AUTHOR NOR JAIR NOR JAIRS PUBLISHERS AND DISTRIBUTORS WILL BE LIABLE FOR DAM AGES OF ANY KIND RESULTING FROM ITS USE Without limiting the generality of the foregoing neither the author nor JAIR nor JAIR's publishers and distributors warrant that the Source Code will be errorfree will operate without interruption or will meet the needs of the user

Methods

Some algorithms are imported from other langauges such as R and Java

Test

To test algorithms on simulated data run:

python3 test_simulated_data.py method structure n_samples num_processor verbose

  • method: causal dicovery algorithms, choose from [GrangerPW, GrangerMV, TCDF, PCMCICMIknn, PCMCIParCorr, oCSE, PCTMI, tsFCI, VarLiNGAM, TiMINO, Dynotears]
  • structure: causal structure, choose from [fork, v_structure, diamond, 7ts2h]
  • n_samples: number of timestamps
  • num_processor: number of processors

Example: python3 test_fmri.py "NBCB" "fork" 1000 1 1

To test algorithms on fmri data run:

python3 test_simulated_data.py method num_processor verbose

Example: python3 test_fmri.py "NBCB" 1 1

causal_discovery_for_time_series's People

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.