These datasets are just like type 1, but have a discrete variable ("bit") that flips the classes. For example, if the class would normally be TRUE, and the bit is 1, then the class is FALSE, and vice versa.
1 | simulate_data_type_2(n, d = 1, bayes_error = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.