softmax | R Documentation |
Calculate the softmax (normalized exponential) of a vector of values or a set of vectors stacked rowwise.
softmax(x)
x |
|
The softmax of x
.
dat <- matrix(runif(100, -1, 1), 25, 4)
softmax(dat)
softmax(dat[,1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.