Coder Social home page Coder Social logo

supervised_causality_detection's Introduction

Experiment of the paper Classification-based Causality Detection in Brain Recordings.

To reproduce the experiments of the paper, follow this pipeline:

create_trainset.py - Calls the function in simulator.py to create a train set of a given shape, i.e. number of causal configurations, trials per configuration and time points.

create_feature_space.py - Computes the feature vector for each trial in a given dataset, it gives as output 3 file in which r2, mse and granger features are saved.

feature_eng_classification_cv.py - Loads the feature vectors that have been computed in the previous step and it enriches the feature vectors by the feature engineering procedure. In case of only one dataset the performance of the supervised approach is quantified by cross-validating the dataset. If two datasets are given and the ground truth of both is known, then the performance is evaluated by considering the predicted causal configuration matrices of the test set. If the ground truth of a dataset is not available then labels can be predicted by applying the classifier trained on the MAR dataset.

curveROC_frontier2016_causality.py - This is just for visualizing the ROC curve and computing the AUC of CBC or MBC applied on a given dataset.   

supervised_causality_detection's People

Contributors

danilobenozzo avatar

Watchers

 avatar

Forkers

fbk-nilab

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.