Learn R Programming

ProxReg (version 1.1.2)

softmax: Softmax function for multinomial response variable

Description

the function calculates the softmax function for the multinomial response variable

Usage

softmax(num)

Value

A numeric matrix or vector of the same shape as num, where each element represents a probability value between 0 and 1. The values sum to 1 across each row or the entire vector.

Arguments

num

A numeric matrix or vector

Details

softmax