| noise | R Documentation |
Create a noise object
noise(add_noise = FALSE, mode = "regression", noise_func = NULL, ...)
add_noise |
Boolean, TRUE if adding noise |
mode |
String, one of "regression" or "classification" |
noise_func |
A function that adds noise to |
... |
Optional named additional arguments to pass to |
A noise object
# create default noise object
noise()
# create noise object for classification
noise(
add_noise = TRUE,
mode = "classification",
noise_func = add_noise_cat_unif
)
# create noise object for regression
noise(
add_noise = TRUE,
mode = "regression",
noise_func = add_noise_kde,
n_ntiles = 10
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.