flexBART: Flexible Bayesian regression trees with categorical predictors

Sameer K. Deshpande
11/8/2022
stat.MEstat.ML
bayesian

Official code: skdeshpande91/flexBART (26 stars, C++, last commit 2026-10-01).

Abstract

Most implementations of Bayesian additive regression trees (BART) one-hot encode categorical predictors, replacing each one with several binary indicators, one for every level or category. Regression trees built with these indicators partition the discrete set of categorical levels by repeatedly removing one level at a time.

Show full abstract

Unfortunately, the vast majority of partitions cannot be built with this strategy, severely limiting BART's ability to partially pool data across groups of levels. Motivated by analyses of baseball data and neighborhood-level crime dynamics, we overcame this limitation by re-implementing BART with regression trees that can assign multiple levels to both branches of a decision tree node. To model spatial data aggregated into small regions, we further proposed a new decision rule prior that creates spatially contiguous regions by deleting a random edge from a random spanning tree of a suitably defined network. Our re-implementation, which is available in the flexBART package, often yields improved out-of-sample predictive performance and scales better to larger datasets than existing implementations of BART.

View on arXivView PDF

Code Implementations(1)

Towards a more flexible BART

264C++, RJan 21, 20222 months ago

Similar Papers

Cite this paper

@article{deshpande2022flexbart,
  title  = {flexBART: Flexible Bayesian regression trees with categorical predictors},
  author = {Sameer K. Deshpande},
  year   = {2022},
  eprint = {2211.04459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.04459}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.04459.svg)](https://codeofpaper.com/paper/2211.04459)

Discussion