Skip to content

Commit 83e2f9f

Browse files
authored
Add seed note on num.threads cross-platform dependency (#1438)
1 parent f3d858d commit 83e2f9f

21 files changed

+41
-21
lines changed

r-package/grf/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Imports:
2929
methods,
3030
Rcpp (>= 0.12.15),
3131
sandwich (>= 2.4-0)
32-
RoxygenNote: 7.2.3
32+
RoxygenNote: 7.3.2
3333
Suggests:
3434
DiagrammeR,
3535
MASS,

r-package/grf/R/causal_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
7575
#' @param num.threads Number of threads used in training. By default, the number of threads is set
7676
#' to the maximum hardware concurrency.
77-
#' @param seed The seed of the C++ random number generator.
77+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
78+
#' different platforms, ensure the `num.threads` argument is set to the same value.
7879
#'
7980
#' @return A trained causal forest object. If tune.parameters is enabled,
8081
#' then tuning information will be included through the `tuning.output` attribute.

r-package/grf/R/causal_survival_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
9090
#' @param num.threads Number of threads used in training. By default, the number of threads is set
9191
#' to the maximum hardware concurrency.
92-
#' @param seed The seed of the C++ random number generator.
92+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
93+
#' different platforms, ensure the `num.threads` argument is set to the same value.
9394
#'
9495
#' @return A trained causal_survival_forest forest object.
9596
#'

r-package/grf/R/instrumental_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
7676
#' @param num.threads Number of threads used in training. By default, the number of threads is set
7777
#' to the maximum hardware concurrency.
78-
#' @param seed The seed of the C++ random number generator.
78+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
79+
#' different platforms, ensure the `num.threads` argument is set to the same value.
7980
#'
8081
#' @return A trained instrumental forest object.
8182
#'

r-package/grf/R/ll_regression_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
#' to select the optimal parameters. Default is 1000.
6161
#' @param num.threads Number of threads used in training. By default, the number of threads is set
6262
#' to the maximum hardware concurrency.
63-
#' @param seed The seed of the C++ random number generator.
63+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
64+
#' different platforms, ensure the `num.threads` argument is set to the same value.
6465
#'
6566
#' @return A trained local linear forest object.
6667
#'

r-package/grf/R/multi_arm_causal_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
9898
#' @param num.threads Number of threads used in training. By default, the number of threads is set
9999
#' to the maximum hardware concurrency.
100-
#' @param seed The seed of the C++ random number generator.
100+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
101+
#' different platforms, ensure the `num.threads` argument is set to the same value.
101102
#'
102103
#' @return A trained multi arm causal forest object.
103104
#'

r-package/grf/R/multi_regression_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
4646
#' @param num.threads Number of threads used in training. By default, the number of threads is set
4747
#' to the maximum hardware concurrency.
48-
#' @param seed The seed of the C++ random number generator.
48+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
49+
#' different platforms, ensure the `num.threads` argument is set to the same value.
4950
#'
5051
#' @return A trained multi regression forest object.
5152
#'

r-package/grf/R/probability_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
4747
#' @param num.threads Number of threads used in training. By default, the number of threads is set
4848
#' to the maximum hardware concurrency.
49-
#' @param seed The seed of the C++ random number generator.
49+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
50+
#' different platforms, ensure the `num.threads` argument is set to the same value.
5051
#'
5152
#' @return A trained probability forest object.
5253
#'

r-package/grf/R/quantile_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is FALSE.
4747
#' @param num.threads Number of threads used in training. By default, the number of threads is set
4848
#' to the maximum hardware concurrency.
49-
#' @param seed The seed of the C++ random number generator.
49+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
50+
#' different platforms, ensure the `num.threads` argument is set to the same value.
5051
#'
5152
#' @return A trained quantile forest object.
5253
#'

r-package/grf/R/regression_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
#' @param compute.oob.predictions Whether OOB predictions on training set should be precomputed. Default is TRUE.
5858
#' @param num.threads Number of threads used in training. By default, the number of threads is set
5959
#' to the maximum hardware concurrency.
60-
#' @param seed The seed of the C++ random number generator.
60+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
61+
#' different platforms, ensure the `num.threads` argument is set to the same value.
6162
#'
6263
#' @return A trained regression forest object. If tune.parameters is enabled,
6364
#' then tuning information will be included through the `tuning.output` attribute.

r-package/grf/R/survival_forest.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
#' Only relevant if `compute.oob.predictions` is TRUE. Default is "Kaplan-Meier".
5353
#' @param num.threads Number of threads used in training. By default, the number of threads is set
5454
#' to the maximum hardware concurrency.
55-
#' @param seed The seed of the C++ random number generator.
55+
#' @param seed The seed of the C++ random number generator. \emph{Note}: For consistent results across
56+
#' different platforms, ensure the `num.threads` argument is set to the same value.
5657
#'
5758
#' @return A trained survival_forest forest object.
5859
#'

r-package/grf/man/causal_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/causal_survival_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/instrumental_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/ll_regression_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/multi_arm_causal_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/multi_regression_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/probability_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/quantile_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/regression_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r-package/grf/man/survival_forest.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)