View source: R/helper_functions.R
softmax | R Documentation |
Compute the softmax-transformed version of a vector or a matrix. Reminder: if x is an ALR-transformed compositional vector, you want to append 0 as the final element of the vector (if x is a vector), or a final column of zeros (if x is a matrix)
softmax(x)
x: |
a vector or a matrix |
the softmax-transformed x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.