Learn R Programming

grf (version 2.5.0)

grf_options: grf package options

Description

grf package options can be set using R's options command. The current available options are:

  • `grf.legacy.seed`: controls whether grf's random seed behavior depends on the number of CPU threads used to train the forest. The default value is `FALSE`. Set to `TRUE` to recover results produced with grf versions prior to 2.4.0.

Usage

grf_options()

Arguments

Value

Prints the current grf package options.

Examples

Run this code
# \donttest{
# Use random seed behavior prior to version 2.4.0.
options(grf.legacy.seed = TRUE)

# Print current package options.
grf_options()

# Use random seed independent of num.threads (default as of version 2.4.0 and higher).
options(grf.legacy.seed = FALSE)
# }

Run the code above in your browser using DataLab