stable_softmax: Compute the numerically-stable softmax of a vector.

View source: R/softmax.R

stable_softmaxR Documentation

Compute the numerically-stable softmax of a vector.

Description

Compute the numerically-stable softmax of a vector.

Usage

stable_softmax(x)

Arguments

x

A vector.

Value

The softmax of 'x'


athowes/multi.utils documentation built on July 20, 2024, 10:57 p.m.