View source: R/gen_friedman1.R
gen_friedman1 | R Documentation |
Simulate data from the Friedman 1 benchmark problem. See
mlbench.friedman1
for details and references.
gen_friedman1(n = 100, nx = 10, sigma = 0.1)
n |
Integer specifying the number of samples (i.e., rows) to generate. Default is 100. |
nx |
Integer specifying the number of predictor variables to generate.
Default is 10. Note that |
sigma |
Numeric specifying the standard deviation of the standard Gaussian noise. |
A data frame with n
rows and nx
+ 1 columns (for
nx
features and the response).
set.seed(2319) # for reproducibility friedman1 <- gen_friedman1(nx = 5) pairs(friedman1, col = "purple2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.