Sparsemax

Sparsemax activation function is similar to softmax but able to output sparse probabilities.

for batch i and class j

sparsemax(x)[i,j] = max(0, logits[i,j] - τ(logits[i,:]))

See also

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int