GithubHelp home page GithubHelp logo

flamingofugang / causality Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssamot/causality

0.0 1.0 0.0 11.98 MB

Kaggle's Causality Challenge Solution for team FirfiD

License: GNU General Public License v3.0

Python 4.94% TeX 1.05% Shell 0.03% MATLAB 59.42% Makefile 0.24% C++ 8.08% HTML 3.21% CSS 0.01% Fortran 14.68% C 0.23% M 0.01% Mercury 8.10%

causality's Introduction

Cause Effect Pairs Challenge FirfiD Submission

Pre-requisites: You need the following installed: python 2.7.1 python sklearn version 0.13.1 python numpy version 1.7.1 python joblib python pandas version >=0.11

Matlab Preferably Debian Based Linux Installation

Kaggle Causality Challenge framework. Mostly based on kaggle's python code code for the challenge.

To train: A. Configure

  1. Put your training data in the following files (or modify file names accordingly):

"train_pairs_path": "./Competition/CEdata_final_train_pairs.csv" "train_info_path": "./Competition/CEdata_final_train_publicinfo.csv" "train_target_path": "./Competition/CEdata_final_train_target.csv"

B. Extracting Features

  1. Modify SETTINGS.json "feature_extraction_threads" to the number of threads your machine can handle.
  2. Run "python fe.py"
  3. Add Matlab features by running "./extract_matlab_valid.sh"
  4. Merge the futures by running "python process_matlab.py -t valid"

C. Train:

  1. Run "python train.py"

To predict:

A. Clean-up

  1. Replace ./Competition/CEfinal_valid*.csv with the respective files you are interested in extracting features from. By default this is set to a minimal subset of valid features.
  2. Run "./clean.sh"

B. Extracting Features

  1. Modify SETTINGS.json "feature_extraction_threads" to the number of threads your machine can handle.
  2. Run "python fe.py"
  3. Add Matlab features by running "./extract_matlab_valid.sh"
  4. Merge the futures by running "python process_matlab.py -t valid"

C. Generating results

  1. Run "python predict.py". The results file should be "./Submisions/firfi-tree-trees.csv".

causality's People

Contributors

ssamot avatar

Watchers

 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.