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
#' @param terms A character string specifying the model term(s) for which to compute intervals. Options for BART models are `"mean_forest"`, `"variance_forest"`, `"rfx"`, or `"y_hat"`.
1069
1069
#' @param level A numeric value between 0 and 1 specifying the credible interval level (default is 0.95 for a 95% credible interval).
1070
1070
#' @param scale (Optional) Scale of mean function predictions. Options are "linear", which returns predictions on the original scale of the mean forest / RFX terms, and "probability", which transforms predictions into a probability of observing `y == 1`. "probability" is only valid for models fit with a probit outcome model. Default: "linear".
1071
-
#' @param covariates A matrix or data frame of covariates at which to compute the intervals. Required if the requested term depends on covariates (e.g., mean forest, variance forest, or overall predictions).
1072
-
#' @param basis An optional matrix of basis function evaluations for mean forest models with regression defined in the leaves. Required for "leaf regression" models.
1071
+
#' @param X A matrix or data frame of covariates at which to compute the intervals. Required if the requested term depends on covariates (e.g., mean forest, variance forest, or overall predictions).
1072
+
#' @param leaf_basis An optional matrix of basis function evaluations for mean forest models with regression defined in the leaves. Required for "leaf regression" models.
1073
1073
#' @param rfx_group_ids An optional vector of group IDs for random effects. Required if the requested term includes random effects.
1074
1074
#' @param rfx_basis An optional matrix of basis function evaluations for random effects. Required if the requested term includes random effects.
Scale of mean function predictions. Options are "linear", which returns predictions on the original scale of the mean forest / RFX terms, and "probability", which transforms predictions into a probability of observing `y == 1`. "probability" is only valid for models fit with a probit outcome model. Defaults to `"linear"`.
2213
2213
level : float, optional
2214
2214
A numeric value between 0 and 1 specifying the credible interval level. Defaults to 0.95 for a 95% credible interval.
2215
-
covariates : np.array, optional
2215
+
X : np.array, optional
2216
2216
Optional array or data frame of covariates at which to compute the intervals. Required if the requested term depends on covariates (e.g., mean forest, variance forest, or overall predictions).
2217
-
basis : np.array, optional
2217
+
leaf_basis : np.array, optional
2218
2218
Optional array of basis function evaluations for mean forest models with regression defined in the leaves. Required for "leaf regression" models.
2219
2219
rfx_group_ids : np.array, optional
2220
2220
Optional vector of group IDs for random effects. Required if the requested term includes random effects.
0 commit comments