Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
7f0e5ec
Initial overhaul of predict method
andrewherren Oct 6, 2025
7a4f5ad
Updated tests and demo scripts
andrewherren Oct 7, 2025
1d1c147
Updated predict function for BCF
andrewherren Oct 7, 2025
f977c19
Updated python BART predict method
andrewherren Oct 8, 2025
11fbf76
Updated python BCF predict method
andrewherren Oct 8, 2025
8e7ab6d
Updated predict method for BCF
andrewherren Oct 9, 2025
763876e
Updated posterior transformation functions for R interface
andrewherren Oct 15, 2025
a8de2da
Removed unused functions
andrewherren Oct 15, 2025
5cc9faa
Updated PPD sampling function and example script
andrewherren Oct 15, 2025
0bf7df3
Updated functions and docs
andrewherren Oct 15, 2025
2421c75
Format R tests with air
andrewherren Oct 15, 2025
5089d68
Fixed BCF heteroskedasticity bug
andrewherren Oct 16, 2025
4601dc3
Fixed documentation for several functions
andrewherren Oct 16, 2025
c0cbdeb
Updated BART predict method in python
andrewherren Oct 16, 2025
78ceee2
Reformat python code
andrewherren Oct 16, 2025
32f13a6
Reformat other python source files
andrewherren Oct 16, 2025
7dc71ce
Deprecate predict_mean and predict_variance methods in python BART
andrewherren Oct 16, 2025
e96268f
Deprecate predict_tau and predict_variance and expand predict method
andrewherren Oct 16, 2025
169e3fa
Updated python predict methods and tests
andrewherren Oct 16, 2025
8f51e2b
Updated python prediction and interval methods
andrewherren Oct 16, 2025
df746dc
Merge branch 'main' into predict_ui_overhaul
andrewherren Oct 17, 2025
4f1beed
Added posterior predictive sampling methods to BART and BCF in python
andrewherren Oct 17, 2025
8588864
Reformatted python code
andrewherren Oct 17, 2025
f57b268
Updated R package and unit tests
andrewherren Oct 17, 2025
1a84fcc
Merge branch 'main' into predict_ui_overhaul
andrewherren Oct 17, 2025
83d553d
Updated indentation
andrewherren Oct 17, 2025
d1ab690
Merge branch 'main' into predict_ui_overhaul
andrewherren Oct 17, 2025
f11a0f4
Fixed several prediction bugs in R for BART / BCF
andrewherren Oct 17, 2025
c03b2ea
Fixed bug in probit + RFX and added contrast computation function for…
andrewherren Oct 21, 2025
2cd3775
Added contrast function for BART
andrewherren Oct 22, 2025
e462023
Updated doc examples
andrewherren Oct 22, 2025
8bc98e1
Shifted RFX parameters to a new list in the R interface for BCF and BART
andrewherren Oct 22, 2025
e157bb6
Updated docs
andrewherren Oct 22, 2025
c28578b
Reflected RFX parameter list through python interface as well
andrewherren Oct 22, 2025
7d7f38a
Updated R interface and added contrast methods to python interface
andrewherren Oct 22, 2025
51d3da7
Updated R unit tests
andrewherren Oct 22, 2025
f572cb9
Reformat python code
andrewherren Oct 22, 2025
6ee1a9b
Fixed bug at the interface of probit / adaptive coding / RFX in Python
andrewherren Oct 22, 2025
8426d98
Fixed RFX prior mean for python interface
andrewherren Oct 22, 2025
19302ac
Fixed bug in BCF probit RFX in Python
andrewherren Oct 22, 2025
533f2a1
Added demo / debug scripts for new python functionality
andrewherren Oct 22, 2025
97cb983
Updated RFX DGP in the probit BCF debug python script
andrewherren Oct 23, 2025
d6e4480
Added RFX spec argument to R bcf
andrewherren Oct 23, 2025
bb09de5
Handling RFX specifications in the predict BCF method
andrewherren Oct 23, 2025
691eed7
Updated predict method and added demo script to check the behavior
andrewherren Oct 23, 2025
a53e58d
Updated predict and demo script
andrewherren Oct 23, 2025
ab6f0ec
Updated serialization
andrewherren Oct 23, 2025
998ebc3
Fixed R serialization bug
andrewherren Oct 23, 2025
58d221c
Added rfx model_spec to python BCF interface and included demo script…
andrewherren Oct 23, 2025
33116f5
Formatted all R package code with air
andrewherren Oct 23, 2025
427bfd9
Merge branch 'main' into predict_ui_overhaul
andrewherren Oct 23, 2025
784fac9
Updated python unit tests
andrewherren Oct 23, 2025
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Description: Flexible stochastic tree ensemble software.
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
LinkingTo:
cpp11, BH
Suggests:
Expand Down
7 changes: 7 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export(calibrateInverseGammaErrorVariance)
export(computeForestLeafIndices)
export(computeForestLeafVariances)
export(computeForestMaxLeafIndex)
export(compute_bart_posterior_interval)
export(compute_bcf_posterior_interval)
export(compute_contrast_bart_model)
export(compute_contrast_bcf_model)
export(convertPreprocessorToJson)
export(createBARTModelFromCombinedJson)
export(createBARTModelFromCombinedJsonString)
Expand Down Expand Up @@ -60,6 +64,8 @@ export(rootResetRandomEffectsModel)
export(rootResetRandomEffectsTracker)
export(sampleGlobalErrorVarianceOneIteration)
export(sampleLeafVarianceOneIteration)
export(sample_bart_posterior_predictive)
export(sample_bcf_posterior_predictive)
export(sample_without_replacement)
export(saveBARTModelToJson)
export(saveBARTModelToJsonFile)
Expand All @@ -77,6 +83,7 @@ importFrom(stats,pnorm)
importFrom(stats,predict)
importFrom(stats,qgamma)
importFrom(stats,qnorm)
importFrom(stats,quantile)
importFrom(stats,resid)
importFrom(stats,rnorm)
importFrom(stats,runif)
Expand Down
17 changes: 17 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,30 @@

## New Features

* Support for multithreading in various elements of the GFR and MCMC algorithms ([#182](https://github.com/StochasticTree/stochtree/pull/182))
* Support for binary outcomes in BART and BCF with a probit link ([#164](https://github.com/StochasticTree/stochtree/pull/164))
* Enable "restricted sweep" of tree algorithms over a handful of trees ([#173](https://github.com/StochasticTree/stochtree/pull/173))
* Support for multivariate treatment in R ([#183](https://github.com/StochasticTree/stochtree/pull/183))
* Enable modification of dataset variables (weights, etc...) via low-level interface ([#194](https://github.com/StochasticTree/stochtree/pull/194))

## Computational Improvements

* Modified default random effects initialization ([#190](https://github.com/StochasticTree/stochtree/pull/190))
* Avoid double prediction on training set ([#178](https://github.com/StochasticTree/stochtree/pull/178))

## Bug Fixes

* Fixed indexing bug in cleanup of grow-from-root (GFR) samples in BART and BCF models
* Avoid using covariate preprocessor in `computeForestLeafIndices` function when a `ForestSamples` object is provided (rather than a `bartmodel` or `bcfmodel` object)

## Other Changes

* Standardized naming conventions for out of sample data in prediction and posterior computation routines (we raise warnings when data are passed through `y`, `X`, `Z`, etc... arguments)
* Covariates / features are always referred to as "covariates" rather than "X"
* Treatment is referred to as "treatment" rather than "Z"
* Propensity scores are referred to as "propensity" rather than "pi_X"
* Outcomes are referred to as "outcome" rather than "Y"

# stochtree 0.1.1

* Fixed initialization bug in several R package code examples for random effects models
Expand Down
Loading
Loading