Skip to content

Commit 072fd4f

Browse files
authored
Minor docstring fix: training -> prediction (#1420)
1 parent f79679d commit 072fd4f

22 files changed

+22
-22
lines changed

r-package/grf/R/causal_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ causal_forest <- function(X, Y, W,
312312
#' @param ll.lambda Ridge penalty for local linear predictions. Defaults to NULL and will be cross-validated.
313313
#' @param ll.weight.penalty Option to standardize ridge penalty by covariance (TRUE),
314314
#' or penalize all covariates equally (FALSE). Penalizes equally by default.
315-
#' @param num.threads Number of threads used in training. If set to NULL, the software
315+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
316316
#' automatically selects an appropriate amount.
317317
#' @param estimate.variance Whether variance estimates for \eqn{\hat\tau(x)} are desired
318318
#' (for confidence intervals).

r-package/grf/R/causal_survival_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ causal_survival_forest <- function(X, Y, W, D,
405405
#' Xi using only trees that did not use the i-th training example). Note
406406
#' that this matrix should have the number of columns as the training
407407
#' matrix, and that the columns must appear in the same order.
408-
#' @param num.threads Number of threads used in training. If set to NULL, the software
408+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
409409
#' automatically selects an appropriate amount.
410410
#' @param estimate.variance Whether variance estimates for \eqn{\hat\tau(x)} are desired
411411
#' (for confidence intervals).

r-package/grf/R/instrumental_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ instrumental_forest <- function(X, Y, W, Z,
273273
#' Xi using only trees that did not use the i-th training example). Note
274274
#' that this matrix should have the number of columns as the training
275275
#' matrix, and that the columns must appear in the same order.
276-
#' @param num.threads Number of threads used in training. If set to NULL, the software
276+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
277277
#' automatically selects an appropriate amount.
278278
#' @param estimate.variance Whether variance estimates for \eqn{\hat\tau(x)} are desired
279279
#' (for confidence intervals).

r-package/grf/R/ll_regression_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ ll_regression_forest <- function(X, Y,
231231
#' @param ll.lambda Ridge penalty for local linear predictions. Defaults to NULL and will be cross-validated.
232232
#' @param ll.weight.penalty Option to standardize ridge penalty by covariance (TRUE),
233233
#' or penalize all covariates equally (FALSE). Defaults to FALSE.
234-
#' @param num.threads Number of threads used in training. If set to NULL, the software
234+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
235235
#' automatically selects an appropriate amount.
236236
#' @param estimate.variance Whether variance estimates for \eqn{\hat\tau(x)} are desired
237237
#' (for confidence intervals).

r-package/grf/R/lm_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ lm_forest <- function(X, Y, W,
260260
#' Xi using only trees that did not use the i-th training example). Note
261261
#' that this matrix should have the number of columns as the training
262262
#' matrix, and that the columns must appear in the same order.
263-
#' @param num.threads Number of threads used in training. If set to NULL, the software
263+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
264264
#' automatically selects an appropriate amount.
265265
#' @param estimate.variance Whether variance estimates for \eqn{\hat h_k(x)} are desired
266266
#' (for confidence intervals). This option is currently

r-package/grf/R/multi_arm_causal_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ multi_arm_causal_forest <- function(X, Y, W,
314314
#' Xi using only trees that did not use the i-th training example). Note
315315
#' that this matrix should have the number of columns as the training
316316
#' matrix, and that the columns must appear in the same order.
317-
#' @param num.threads Number of threads used in training. If set to NULL, the software
317+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
318318
#' automatically selects an appropriate amount.
319319
#' @param estimate.variance Whether variance estimates for \eqn{\hat\tau(x)} are desired
320320
#' (for confidence intervals). This option is currently

r-package/grf/R/multi_regression_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ multi_regression_forest <- function(X, Y,
130130
#' Xi using only trees that did not use the i-th training example). Note
131131
#' that this matrix should have the number of columns as the training
132132
#' matrix, and that the columns must appear in the same order.
133-
#' @param num.threads Number of threads used in training. If set to NULL, the software
133+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
134134
#' automatically selects an appropriate amount.
135135
#' @param drop If TRUE, coerce the prediction result to the lowest possible dimension. Default is FALSE.
136136
#' @param ... Additional arguments (currently ignored).

r-package/grf/R/probability_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ probability_forest <- function(X, Y,
160160
#' Xi using only trees that did not use the i-th training example). Note
161161
#' that this matrix should have the number of columns as the training
162162
#' matrix, and that the columns must appear in the same order.
163-
#' @param num.threads Number of threads used in training. If set to NULL, the software
163+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
164164
#' automatically selects an appropriate amount.
165165
#' @param estimate.variance Whether variance estimates for P[Y = k | X] are desired (for confidence intervals).
166166
#' @param ... Additional arguments (currently ignored).

r-package/grf/R/quantile_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ quantile_forest <- function(X, Y,
153153
#' matrix, and that the columns must appear in the same order.
154154
#' @param quantiles Vector of quantiles at which estimates are required. If NULL, the quantiles
155155
#' used to train the forest is used. Default is NULL.
156-
#' @param num.threads Number of threads used in training. If set to NULL, the software
156+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
157157
#' automatically selects an appropriate amount.
158158
#' @param ... Additional arguments (currently ignored).
159159
#'

r-package/grf/R/regression_forest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ regression_forest <- function(X, Y,
199199
#' @param ll.lambda Ridge penalty for local linear predictions. Defaults to NULL and will be cross-validated.
200200
#' @param ll.weight.penalty Option to standardize ridge penalty by covariance (TRUE),
201201
#' or penalize all covariates equally (FALSE). Defaults to FALSE.
202-
#' @param num.threads Number of threads used in training. If set to NULL, the software
202+
#' @param num.threads Number of threads used in prediction. If set to NULL, the software
203203
#' automatically selects an appropriate amount.
204204
#' @param estimate.variance Whether variance estimates for \eqn{\hat\tau(x)} are desired
205205
#' (for confidence intervals).

0 commit comments

Comments
 (0)