Skip to content

Commit 42bba17

Browse files
authored
Merge pull request #54 from StochasticTree/serialization-hotfix
Fixed small BCF bug that shows up in serialization roundtrip
2 parents d142a71 + dc68595 commit 42bba17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/bcf.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ bcf <- function(X_train, Z_train, y_train, pi_train = NULL, group_ids_train = NU
768768
"b_leaf_tau" = b_leaf_tau,
769769
"outcome_mean" = y_bar_train,
770770
"outcome_scale" = y_std_train,
771-
"num_covariates" = ncol(X_train),
771+
"num_covariates" = num_cov_orig,
772772
"num_prognostic_covariates" = sum(variable_weights_mu > 0),
773773
"num_treatment_covariates" = sum(variable_weights_tau > 0),
774774
"treatment_dim" = ncol(Z_train),

0 commit comments

Comments
 (0)