Learn R Programming

mimiSBM (version 0.0.1.3)

log_Softmax: log softmax of matrices (by row)

Description

log softmax of matrices (by row)

Usage

log_Softmax(log_X)

Value

X with log_softmax function applied on each row

Arguments

log_X

a matrix of log(X)

Examples

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

Run the code above in your browser using DataLab