softmax | R Documentation |
Implementation of the softmax function.
softmax(logits)
logits |
An nxM matrix, with n the sample size and M the number of classes of an ordinal outcome. |
The same matrix where each row is normalized so that row sums equal 1; useful to construct conditional probability mass functions.
Riccardo Di Francesco
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.