Description Usage Arguments Value
utility function to encode indices in a binary vector
1 | one_hot(p, n_var)
|
p |
a list like the result of random_selection_regression |
n_var |
the total number of indices |
a binary vector of length n_var with elements equal to 1 for the indices in p$indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.