Softmax function https://en.wikipedia.org/wiki/Softmax_function When the weights are empty, it returns an empty array.

  • Parameters

    • weights: number[]

    Returns number[]