You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/model.R
+19-18Lines changed: 19 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ ForestModel <- R6::R6Class(
63
63
#' @param forest_dataset Dataset used to sample the forest
64
64
#' @param residual Outcome used to sample the forest
65
65
#' @param forest_samples Container of forest samples
66
+
#' @param active_forest "Active" forest updated by the sampler in each iteration
66
67
#' @param rng Wrapper around C++ random number generator
67
68
#' @param feature_types Vector specifying the type of all p covariates in `forest_dataset` (0 = numeric, 1 = ordered categorical, 2 = unordered categorical)
68
69
#' @param leaf_model_int Integer specifying the leaf model type (0 = constant leaf, 1 = univariate leaf regression, 2 = multivariate leaf regression)
@@ -71,26 +72,27 @@ ForestModel <- R6::R6Class(
71
72
#' @param a_forest Shape parameter on variance forest model (if applicable)
72
73
#' @param b_forest Scale parameter on variance forest model (if applicable)
73
74
#' @param global_scale Global variance parameter
74
-
#' @param cutpoint_grid_size (Optional) Number of unique cutpoints to consider (default: 500, currently only used when `GFR = TRUE`)
75
-
#' @param gfr (Optional) Whether or not the forest should be sampled using the "grow-from-root" (GFR) algorithm
76
-
#' @param pre_initialized (Optional) Whether or not the leaves are pre-initialized outside of the sampling loop (before any samples are drawn). In multi-forest implementations like BCF, this is true, though in the single-forest supervised learning implementation, we can let C++ do the initialization. Default: F.
#' @param cutpoint_grid_size (Optional) Number of unique cutpoints to consider (default: `500`, currently only used when `GFR = TRUE`)
76
+
#' @param keep_forest (Optional) Whether the updated forest sample should be saved to `forest_samples`. Default: `T`.
77
+
#' @param gfr (Optional) Whether or not the forest should be sampled using the "grow-from-root" (GFR) algorithm. Default: `T`.
78
+
#' @param pre_initialized (Optional) Whether or not the leaves are pre-initialized outside of the sampling loop (before any samples are drawn). In multi-forest implementations like BCF, this is true, though in the single-forest supervised learning implementation, we can let C++ do the initialization. Default: `F`.
0 commit comments