pymc-devs / pymc-devs/bartrs

Store less trees during sampling

Open
#15 0 comments 0 reactions 1 assignee View on GitHub

@OttoVintola is already working on this.

Since Jun 13, 2026.

enhancement
Dominant language
Rust
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

According to @aloctavodia, we can update $n$, where $n < m$, trees during sampling since there is not much statistical difference in the results. In the code, we control $n$ with batch_tune and batch_post—both default to 10% of the trees. During tuning we would store all $m$ trees but during sampling use $m \cdot \text{batch} = B$ trees

Below is an illustrative figure of the approach that displays the sliding window, again with 10% of the trees:
Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.