Skip to contents

Softmax class scores (morie.fn grsmxs)

Usage

morie_geron_softmax_score_grsmxs(X, theta)

Arguments

X

(m, n) design.

theta

(n, K) parameters.

Value

List with scores and 0-based argmax.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_softmax_score_grsmxs(V, V)
#> $scores
#>      [,1]
#> [1,]  204
#> 
#> $argmax
#> [1] 0
#> 
#> $estimate
#>      [,1]
#> [1,]  204
#> 
#> $n
#> [1] 1
#>