Skip to content

Commit ac2c64d

Browse files
authored
Merge pull request #339 from StochasticTree/bart-num-threads-hotfix
Fix num_threads pass-through bug in R BART interface
2 parents 81fa7fb + cd3ef64 commit ac2c64d

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
## Bug Fixes
1111

12-
* Fixed probit offset bug R and Python [#337](https://github.com/StochasticTree/stochtree/pull/337)
12+
* Fixed num_threads pass-through bug in R BART [#339](https://github.com/StochasticTree/stochtree/pull/339)
13+
* Fixed probit offset bug in R and Python [#337](https://github.com/StochasticTree/stochtree/pull/337)
1314
* Standardized multi-chain BCF handling of internal propensity models [#334](https://github.com/StochasticTree/stochtree/pull/334)
1415
* Fixed multi-chain BCF bugs with the parametric intercept term in R and Python [#326](https://github.com/StochasticTree/stochtree/pull/326)
1516
* Fixed indexing bugs for multivariate treatment BCF in Python [#326](https://github.com/StochasticTree/stochtree/pull/326)

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
## Bug Fixes
99

10-
* Fixed probit offset bug R and Python [#337](https://github.com/StochasticTree/stochtree/pull/337)
10+
* Fixed num_threads pass-through bug in R BART [#339](https://github.com/StochasticTree/stochtree/pull/339)
11+
* Fixed probit offset bug in R and Python [#337](https://github.com/StochasticTree/stochtree/pull/337)
1112
* Standardized multi-chain BCF handling of internal propensity models [#334](https://github.com/StochasticTree/stochtree/pull/334)
1213
* Fixed multi-chain BCF bugs with the parametric intercept term in R and Python [#326](https://github.com/StochasticTree/stochtree/pull/326)
1314
* Fixed indexing bugs for multivariate treatment BCF in Python [#326](https://github.com/StochasticTree/stochtree/pull/326)

R/bart.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,7 @@ bart <- function(
16951695
rng = rng,
16961696
forest_model_config = forest_model_config_variance,
16971697
global_model_config = global_model_config,
1698+
num_threads = num_threads,
16981699
keep_forest = keep_sample,
16991700
gfr = TRUE
17001701
)
@@ -2156,6 +2157,7 @@ bart <- function(
21562157
rng = rng,
21572158
forest_model_config = forest_model_config_mean,
21582159
global_model_config = global_model_config,
2160+
num_threads = num_threads,
21592161
keep_forest = keep_sample,
21602162
gfr = FALSE
21612163
)
@@ -2222,6 +2224,7 @@ bart <- function(
22222224
rng = rng,
22232225
forest_model_config = forest_model_config_variance,
22242226
global_model_config = global_model_config,
2227+
num_threads = num_threads,
22252228
keep_forest = keep_sample,
22262229
gfr = FALSE
22272230
)

0 commit comments

Comments
 (0)