View source: R/bound_transforms.R
softmax | R Documentation |
Apply the softmax function to a vector of values.
softmax(x)
x |
Vector of values. |
Apply the softmax function to a vector of values, e.g.:
\text{softmax}(z_i) = \frac{e^{z_i}}{\sum_{j = 1}^K \ e^{z_j}}
softmax(seq(from = 0, to = 1, by = 0.25))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.