if (FALSE) { # requireNamespace("knockoff", quietly = TRUE)
library(mlr3)
task = tgen("2dnormals")$generate(n = 100)
# Create sampler with default parameters
sampler = KnockoffSampler$new(task)
# Sample using row_ids from stored task
sampled_data = sampler$sample("x1")
}
Run the code above in your browser using DataLab