Description Usage Arguments Details Value Note Author(s) See Also Examples
The inverse softmax function: take a logarithm and center.
1 |
mu |
a vector of the probablities.
Must be the same length as |
g |
a vector giving the group indices. If |
This is the inverse of the softmax function. Given vector μ for a single group, finds vector η such that
η_i = \log{μ_i} + c,
where c is chosen such that the η sum to zero:
c = \frac{-1}{n} ∑_i \log{μ_i}.
the centered log probabilities.
This function can deal with overflow in a semi-coherent way.
Steven E. Pav shabbychef@gmail.com
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.