Click or drag to resize
Accord.NET (logo)

SpecialSoftmax Method (Double, Double)

Computes the Softmax function (also known as normalized Exponencial function) that "squashes"a vector or arbitrary real values into a vector of real values in the range (0, 1) that add up to 1.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double[] Softmax(
	double[] input,
	double[] result
)
Request Example View Source

Parameters

input
Type: SystemDouble
The real values to be converted into the unit interval.
result
Type: SystemDouble
The location where to store the result of this operation.

Return Value

Type: Double
A vector with the same number of dimensions as input but where values lie between 0 and 1.
See Also