GithubHelp home page GithubHelp logo

zuomatthew / causal-forest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timmens/causal-forest

0.0 1.0 0.0 2.26 MB

Implements the Causal Forest algorithm formulated in Athey and Wager (2018).

License: MIT License

Python 83.13% Shell 0.76% Batchfile 0.08% Jupyter Notebook 16.03%

causal-forest's Introduction

causal-forest

Contributors MIT License Coverage Build Status Documentation Status Black Code Style

Word of warning

The package is still in development stage and should not be used other than for experimental reasons. With version 0.1.0 we will benchmark our code against existing code.

Introduction

The cforest package can be used to estimate heterogeneous treatment effects in a Neyman-Rubin potential outcome framework. It implements the Causal Forest algorithm first formulated in Athey and Wager (2018).

Install

The package can be installed via conda. To do so, type the following commands in a terminal:

conda install -c timmens cforest

Documentation

The documentation is hosted at https://causal-forest.readthedocs.io/en/latest/.

Example

Complete example:

For a complete working example going through all main features please view our example notebook.

Minimal example:

from cforest.forest import CausalForest

X, t, y = simulate_data()

cf = CausalForest()

cf = cf.fit(X, t, y)

XX = simulate_new_features()
predictions = cf.predict(XX)

References

causal-forest's People

Contributors

timmens 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.