Skip to content

Commit d7473d3

Browse files
authored
Add causal trees interpretation example (#536)
1 parent c82d636 commit d7473d3

3 files changed

Lines changed: 677 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
.PHONY: build_ext
2-
build_ext: clean
2+
build_ext: install_req clean
33
python setup.py build_ext --force --inplace
44

5+
.PHONY: install_req
6+
install_req:
7+
pip install -r requirements.txt
8+
59
.PHONY: build
610
build: build_ext
711
python setup.py bdist_wheel

causalml/inference/tree/causal/builder.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# cython: cdivision=True
2+
# cython: boundscheck=False
3+
# cython: wraparound=False
4+
# cython: language_level=3
5+
# cython: linetrace=True
6+
17
from sklearn.tree._tree cimport Tree, TreeBuilder
28
from sklearn.tree._tree cimport Splitter, SplitRecord
39
from sklearn.tree._utils cimport StackRecord, Stack

examples/causal_trees_interpretation.ipynb

Lines changed: 666 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)