Releases: StochasticTree/stochtree
Releases · StochasticTree/stochtree
stochtree 0.4.2
Installation
Python:
pip install stochtree==0.4.2
R (CRAN): install.packages("stochtree") (pending CRAN review, usually several days)
R (GitHub, immediate): remotes::install_github("StochasticTree/stochtree@r-0.4.2")
Changes
New Features
- Added support for parametric treatment effect term in BCF #309
- Added support for observation-level weights passed as data arguments to BART and BCF #333
Bug Fixes
- Include boost headers in
sdistfor Python package #362 - Fixed prediction bug for cloglog BART in R #361
- Fixed assignment bug in RFX category tracker data structure #360
- Fixed prediction bugs in binary classification sklearn wrapper #359
- Fixed several initialization, sampling and prediction bugs for cloglog #357
- Fixed num_threads pass-through bug in R BART #339
- Fixed probit offset bug in R and Python #337
- Standardized multi-chain BCF handling of internal propensity models #334
- Fixed multi-chain BCF bugs with the parametric intercept term in R and Python #326
- Fixed indexing bugs for multivariate treatment BCF in Python #326
- Convert binary factor-valued treatments to 0/1 binary numeric treatment in
bcf()R function #332
Documentation and Other Maintenance
- Add support for python 3.14 and drop 3.8 and 3.9 #363
Other Notes
Prior to version 0.4.2, we used separate github releases for the Python and R packages (i.e. python-x.y.z and r-x.y.z). Now we use a single vx.y.z release based on the main branch at release time and auto-tag the r-dev branch based on that release with the r-x.y.z tag so that the R package version can be cleanly installed in its CRAN-compatible folder structure.
stochtree R 0.4.1
stochtree Python 0.4.1
stochtree R 0.4.0
New Features
- Added support for ordinal outcome modeling through complementary log-log link function in the BART models (#196)
- Added
__str__,__repr__,summary, andextract_parametermethods in Python for theBARTModelandBCFModelclasses (#298) - Added plotting utility function (
plot_parameter_trace) in Python that operates on both theBARTModelandBCFModelclasses (#298) - Added vignettes for summary / model inspection utilities in both R and Python (#298)
- Added
printmethods in R and__str__methods in Python for the forest container and random effects container objects (#298) - Updated R documentation to group related functions into topics (#302):
BARTSerializationBCFSerializationForestSamplesSerializationRandomEffectSamplesSerializationDataPreprocessingForestKernelComputationForestStateManagementRandomEffectStateManagement
- Converted the following R function names from snake case to camel case (#302):
compute_bart_posterior_interval->computeBARTPosteriorIntervalcompute_bcf_posterior_interval->computeBCFPosteriorIntervalcompute_contrast_bart_model->computeContrastBARTModelcompute_contrast_bcf_model->computeContrastBCFModelextract_parameter->extractParametersample_bart_posterior_predictive->sampleBARTPosteriorPredictivesample_bcf_posterior_predictive->sampleBCFPosteriorPredictive
Bug Fixes
- Fixed status logging bugs for multi-chain R MCMC loops (#298)
stochtree Python 0.4.0
New Features
- Added support for ordinal outcome modeling through complementary log-log link function in the BART models (#196)
- Added
__str__,__repr__,summary, andextract_parametermethods in Python for theBARTModelandBCFModelclasses (#298) - Added plotting utility function (
plot_parameter_trace) in Python that operates on both theBARTModelandBCFModelclasses (#298) - Added vignettes for summary / model inspection utilities in both R and Python (#298)
- Added
printmethods in R and__str__methods in Python for the forest container and random effects container objects (#298) - Updated R documentation to group related functions into topics (#302):
BARTSerializationBCFSerializationForestSamplesSerializationRandomEffectSamplesSerializationDataPreprocessingForestKernelComputationForestStateManagementRandomEffectStateManagement
- Converted the following R function names from snake case to camel case (#302):
compute_bart_posterior_interval->computeBARTPosteriorIntervalcompute_bcf_posterior_interval->computeBCFPosteriorIntervalcompute_contrast_bart_model->computeContrastBARTModelcompute_contrast_bcf_model->computeContrastBCFModelextract_parameter->extractParametersample_bart_posterior_predictive->sampleBARTPosteriorPredictivesample_bcf_posterior_predictive->sampleBCFPosteriorPredictive
Bug Fixes
- Fixed status logging bugs for multi-chain R MCMC loops (#298)
stochtree Python 0.3.1
New Features
- Replaced C++ standard library distributions (
discrete_distribution,uniform_real_distribution,normal_distribution, andgamma_distribution) with custom implementations for cross-platform reproducibility. - Substituted custom implementations for base R
mean(),var(), andsd()in the preprocessing logic of the Rbart()andbcf()functions for enhanced numeric stability across platforms.
stochtree R 0.3.1
New Features
- Replaced C++ standard library distributions (
discrete_distribution,uniform_real_distribution,normal_distribution, andgamma_distribution) with custom implementations for cross-platform reproducibility. - Substituted custom implementations for base R
mean(),var(), andsd()in the preprocessing logic of the Rbart()andbcf()functions for enhanced numeric stability across platforms.
stochtree Python 0.3.0
New Features
- Added
print,summary,plot, andextract_parametergeneric functions in R for thebartmodelandbcfmodelclasses (#271) - Added sklearn-compatible estimator wrapper for
BARTModelin Python (#270)
Bug Fixes
- Fix R bug where our approach to temporarily modifying users' RNG state failed if
.Random.seeddid not exist (i.e. if the R RNG hadn't yet been accessed by an R session) (#258) - Fix prediction bug for R BART models with random effects with labels that aren't straightforward
1:num_groupsintegers when onlyy_hatis requested (#256) - Fix issue with C++ standard specification in Windows R package config (#276)
stochtree R 0.3.0
New Features
- Added
print,summary,plot, andextract_parametergeneric functions in R for thebartmodelandbcfmodelclasses (#271)
Bug Fixes
- Fix R bug where our approach to temporarily modifying users' RNG state failed if
.Random.seeddid not exist (i.e. if the R RNG hadn't yet been accessed by an R session) (#258) - Fix prediction bug for R BART models with random effects with labels that aren't straightforward
1:num_groupsintegers when onlyy_hatis requested (#256) - Fix issue with C++ standard specification in Windows R package config (#276)
stochtree Python 0.2.1
stochtree 0.2.1
Bug Fixes
- Fix prediction bug for univariate random effects models in R (#248)
- Fix prediction bug for Python BART and BCF models with random effects with labels that aren't straightforward
0:(num_groups-1)integers (#256)
Other Changes
- Encode expectations about which combinations of BART / BCF features work together and ensure warning (#250)