A helper function for simulating sample labels
1 | gen.sample.labels(K, class.equal = TRUE)
|
K |
the number of classes |
class.equal |
whether the number of samples/class should be equal, with each
class having a prior of 1/K, or inequal, in which each class obtains a prior
of k/sum(K) for k=1:K. Defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.