Skip to content

Commit

Permalink
Add causal trees interpretation example (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-pv committed Aug 22, 2022
1 parent c82d636 commit d7473d3
Show file tree
Hide file tree
Showing 3 changed files with 677 additions and 1 deletion.
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.

0 comments on commit d7473d3

Please sign in to comment.