|
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
)
Public Shared Function Softmax (
input As Double(),
result As Double()
) As Double()
Request Example
View SourceParameters
- 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:
DoubleA vector with the same number of dimensions as
input
but where values lie between 0 and 1.
See Also