Documentation
    Preparing search index...

    Variable softmaxWithTemperatureConst

    softmaxWithTemperature: (weights: number[], temperature: number) => number[]

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

    Type declaration

      • (weights: number[], temperature: number): number[]
      • Parameters

        • weights: number[]
        • temperature: number

        Returns number[]

        array of probabilities