Giter Site home page Giter Site logo

causalpairs's Introduction

Cause Effect Pairs R package

This repo contains some sample code in R to read pairs data (CEdata_text) for the Cause Effect Pairs Challenge, a machine learning challenged hosted by Kaggle and organized by ChaLearn.

Install the package

require(devtools)
install_github("CausalPairs", "dickoa")

How to use it

The main function in this package is the read_pairs_data

require(CausalPairs)
valid <- read_pairs_data("path_to_data/CEdata_valid_pairs.csv")
train <- read_pairs_data("path_to_data/CEdata_train_pairs.csv")

Normally you should get something like

str(train)
Classes ‘data.table’ and 'data.frame':	20569477 obs. of  3 variables:
 $ SampleID: chr  "train1" "train1" "train1" "train1" ...
 $ A       : num  2092 1143 390 1424 1277 ...
 $ B       : num  5651 4449 4012 6124 7310 ...
 - attr(*, "sorted")= chr "SampleID"
 - attr(*, ".internal.selfref")=<externalptr>

More info

For those not really familiar with data.table object, you can check out the vignettes

vignette("datatable-faq", package = "data.table")
vignette("datatable-intro", package = "data.table")

More ressources at data.table project

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.