| nnf_multilabel_one_hot | R Documentation |
Transforms a tensor of class indices (one column per hierarchy level) into a binary tensor where each column corresponds to a class.
nnf_multilabel_one_hot(y, outcomes, device = "cpu")
y |
A |
outcomes |
A tibble with factor columns (as from |
device |
Torch device. |
A torch_tensor of shape (batch_size, n_classes) with binary values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.