softmax_matrix_rows: Calculate softmax for each row of a matrix

View source: R/math_utils.R

softmax_matrix_rowsR Documentation

Calculate softmax for each row of a matrix

Description

Calculate softmax for each row of a matrix

Usage

softmax_matrix_rows(X)

Arguments

X

a matrix

Value

softmax(X) by row; each row of result sums to 1


reichlab/covidEnsembles documentation built on Jan. 31, 2024, 7:21 p.m.