Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Causal trees interpretation example #536

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.PHONY: build_ext
build_ext: clean
build_ext: install_req clean
python setup.py build_ext --force --inplace

.PHONY: install_req
install_req:
pip install -r requirements.txt

.PHONY: build
build: build_ext
python setup.py bdist_wheel
Expand Down
6 changes: 6 additions & 0 deletions causalml/inference/tree/causal/builder.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# cython: cdivision=True
# cython: boundscheck=False
# cython: wraparound=False
# cython: language_level=3
# cython: linetrace=True

from sklearn.tree._tree cimport Tree, TreeBuilder
from sklearn.tree._tree cimport Splitter, SplitRecord
from sklearn.tree._utils cimport StackRecord, Stack
Expand Down
666 changes: 666 additions & 0 deletions examples/causal_trees_interpretation.ipynb

Large diffs are not rendered by default.