softmax: Softmax function for multinomial response variable

View source: R/models.R

softmaxR Documentation

Softmax function for multinomial response variable

Description

the function calculates the softmax function for the multinomial response variable

Usage

softmax(num)

Arguments

num

A numeric matrix or vector

Details

softmax

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.


ProxReg documentation built on April 3, 2025, 9:21 p.m.