softmax {EMSNM} | R Documentation |
Softmax Value
Description
Calculate the Softmax Value of each subgroup to represent the probability of items belonging to specific class.
Usage
softmax(eta, X)
Arguments
eta |
the coeffients determining subgroup |
X |
the covariables determining subgroup |
Value
Softmax Value of each subgroup
Author(s)
Linsui Deng
Examples
#some variables
samplesize <- 1000
classsize <- 6
etasize <- 3
alphasize <- 2
#test of softmax
Xtest <- data.frame(matrix(rnorm(samplesize*etasize),samplesize,etasize))
etatest <- matrix(seq(1.15,1,length=etasize*classsize),etasize,classsize)
softmax_value <- softmax(etatest,Xtest)
[Package EMSNM version 1.0 Index]