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

  • Parameters

    • weights: number[]
    • temperature: number

    Returns number[]

    array of probabilities