R/misc.R
softmax.Rd
Takes a vector of real numbers and returns the corresponding vector of probabilities
softmax(eta, log = FALSE)
Vector
Logical, whether to return the value of the logarithm
A vector equal to length of eta: \(\exp(\eta)/\sum\exp(\eta)\)
eta
Uses MARS:::logspace.add for numerical stability
MARS:::logspace.add