1
1
# StochasticTree
2
2
3
- [ ![ C++ Tests] ( https://github.com/StochasticTree/stochtree-cpp /actions/workflows/cpp-test.yml/badge.svg )] ( https://github.com/StochasticTree/stochtree-cpp /actions/workflows/cpp-test.yml )
4
- [ ![ Python Tests] ( https://github.com/StochasticTree/stochtree-cpp /actions/workflows/python-test.yml/badge.svg )] ( https://github.com/StochasticTree/stochtree-cpp /actions/workflows/python-test.yml )
5
- [ ![ R Tests] ( https://github.com/StochasticTree/stochtree-cpp /actions/workflows/r-test.yml/badge.svg )] ( https://github.com/StochasticTree/stochtree-cpp /actions/workflows/r-test.yml )
3
+ [ ![ C++ Tests] ( https://github.com/StochasticTree/stochtree/actions/workflows/cpp-test.yml/badge.svg )] ( https://github.com/StochasticTree/stochtree/actions/workflows/cpp-test.yml )
4
+ [ ![ Python Tests] ( https://github.com/StochasticTree/stochtree/actions/workflows/python-test.yml/badge.svg )] ( https://github.com/StochasticTree/stochtree/actions/workflows/python-test.yml )
5
+ [ ![ R Tests] ( https://github.com/StochasticTree/stochtree/actions/workflows/r-test.yml/badge.svg )] ( https://github.com/StochasticTree/stochtree/actions/workflows/r-test.yml )
6
6
7
7
Software for building stochastic tree ensembles (i.e. BART, XBART) for supervised learning and causal inference.
8
8
@@ -27,7 +27,7 @@ Without worrying about virtual environments (detailed further below), `stochtree
27
27
28
28
```
29
29
pip install numpy scipy pytest pandas scikit-learn pybind11
30
- pip install git+https://github.com/StochasticTree/stochtree-cpp .git
30
+ pip install git+https://github.com/StochasticTree/stochtree.git
31
31
```
32
32
33
33
## Virtual environment installation
@@ -48,7 +48,7 @@ conda activate stochtree-dev
48
48
Then install the package from github via pip
49
49
50
50
``` {bash}
51
- pip install git+https://github.com/StochasticTree/stochtree-cpp .git
51
+ pip install git+https://github.com/StochasticTree/stochtree.git
52
52
```
53
53
54
54
(* Note* : if you'd also like to run ` stochtree ` 's notebook examples, you will also need jupyterlab, seaborn, and matplotlib)
@@ -79,7 +79,7 @@ pip install numpy scipy pytest pandas scikit-learn pybind11
79
79
Then install stochtree via
80
80
81
81
``` {bash}
82
- pip install git+https://github.com/StochasticTree/stochtree-cpp .git
82
+ pip install git+https://github.com/StochasticTree/stochtree.git
83
83
```
84
84
85
85
As above, if you'd like to run the notebook examples in the ` demo/ ` subfolder, you will also need jupyterlab, seaborn, and matplotli and you will have to [ clone the repo] ( ###cloning-the-repository )
@@ -93,14 +93,14 @@ pip install matplotlib seaborn jupyterlab
93
93
The package can be installed in R via
94
94
95
95
```
96
- remotes::install_github("StochasticTree/stochtree-cpp ", ref="r-dev")
96
+ remotes::install_github("StochasticTree/stochtree", ref="r-dev")
97
97
```
98
98
99
99
# C++ Core
100
100
101
101
While the C++ core links to both R and Python for a performant, high-level interface,
102
102
the C++ code can be compiled and unit-tested and compiled into a standalone
103
- [ debug program] ( https://github.com/StochasticTree/stochtree-cpp /tree/main/debug ) .
103
+ [ debug program] ( https://github.com/StochasticTree/stochtree/tree/main/debug ) .
104
104
105
105
## Compilation
106
106
@@ -111,7 +111,7 @@ To clone the repository, you must have git installed, which you can do following
111
111
Once git is available at the command line, navigate to the folder that will store this project (in bash / zsh, this is done by running ` cd ` followed by the path to the directory).
112
112
Then, clone the ` StochasticTree ` repo as a subfolder by running
113
113
``` {bash}
114
- git clone --recursive https://github.com/andrewherren/ StochasticTree.git
114
+ git clone --recursive https://github.com/StochasticTree/stochtree .git
115
115
```
116
116
117
117
* NOTE* : this project incorporates several dependencies as [ git submodules] ( https://git-scm.com/book/en/v2/Git-Tools-Submodules ) ,
@@ -124,7 +124,7 @@ The C++ project can be built independently from the R / Python packages using `c
124
124
See [ here] ( https://cmake.org/install/ ) for details on installing cmake (alternatively,
125
125
on MacOS, ` cmake ` can be installed using [ homebrew] ( https://formulae.brew.sh/formula/cmake ) ).
126
126
Once ` cmake ` is installed, you can build the CLI by navigating to the main
127
- project directory at your command line (i.e. ` cd /path/to/stochtree-cpp ` ) and
127
+ project directory at your command line (i.e. ` cd /path/to/stochtree ` ) and
128
128
running the following code
129
129
130
130
``` {bash}
@@ -147,7 +147,7 @@ via `lldb ./build/debugstochtree` (clang) or `gdb ./build/debugstochtree` (gcc).
147
147
148
148
#### Unit Tests
149
149
150
- We test ` stochtree-cpp ` using the [ GoogleTest] ( https://google.github.io/googletest/ ) framework.
150
+ We test ` stochtree ` using the [ GoogleTest] ( https://google.github.io/googletest/ ) framework.
151
151
Unit tests are compiled into a single target as part of the CMake build if the ` BUILD_TEST ` option is set to ` ON `
152
152
and the test suite can be run after compilation via ` ./build/teststochtree `
153
153
0 commit comments