nn_contrib_sparsemax | R Documentation |
Sparsemax activation module.
nn_contrib_sparsemax(dim = -1)
dim |
The dimension over which to apply the sparsemax function. (-1) |
The SparseMax activation is described in 'From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classification' The implementation is based on aced125/sparsemax
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.