Description Usage Arguments Details Value Examples
View source: R/utility_functions.R
A generalization of the logistic function takes a K-dimensional vector of arbitrary values and converts it to a K-dimensional vector of real values in the range (0,1) that sum to 1. The function is also known as the normalized exponential.
1 | softmax(x)
|
x |
a vector of values from -Inf to Inf. |
The function can take either a vector or a matrix of values. If a matrix is passed in, the function is applied to each row of the matrix.
a vector of values from 0 to 1 that sum to 1.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.