Description Usage Arguments Value
Could be useful to re-construct idx and idx_ref with no missing classes. Set swap_ratio to 0 results in a relatively (but not globally) minimal swapping.
1 2 | SwapMissingClass(idx, idx_ref, onehot, swap_ratio = 0.1,
swap_random = FALSE)
|
idx |
a vector of sample indices. |
idx_ref |
a vector of reference sample indices. |
onehot |
a onehot table. |
swap_ratio |
ratio of swapped elements from reference samples. |
swap_random |
whether swapped elements are randomly selected by sample(), otherwise elements are selected in index order. |
a named list with new idx and idx_ref.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.