log_Softmax: log softmax of matrices (by row)

View source: R/utils.R

log_SoftmaxR Documentation

log softmax of matrices (by row)

Description

log softmax of matrices (by row)

Usage

log_Softmax(log_X)

Arguments

log_X

a matrix of log(X)

Value

X with log_softmax function applied on each row

Examples

set.seed(42)
X <- matrix(rnorm(15,mean=5),5,3)
log_X <- log(X)
X_softmax <-  log_Softmax(X)

mimiSBM documentation built on May 29, 2024, 2:48 a.m.