softmax
Module: strata.utils • Kind: function
Source: strata/utils/math.mojo
def softmax[dtype: DType = DType.float64]( x: List[Scalar[dtype]],) -> List[Scalar[dtype]]from strata.utils import softmaxCompute numerically stable softmax probability distribution.
Returns: List[Scalar[dtype]] — List[Scalar[dtype]]: Normalized probability distribution vector summing to 1.0.