Vector.Log Soft Max<T> Method
Computes the logarithm of the softmax function of a vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
The logarithm of the softmax function applied to vector.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
public static Vector<T> LogSoftMax<T>(
Vector<T> vector
)
Parameters
- vector Vector<T>
- A vector.
Type Parameters
- T
Return Value
Vector<T>The logarithm of the softmax function applied to vector.
Remarks
The implementation uses the LogSumExp<T>(Vector<T>) formulation. If any input is NaN, all results are NaN. If one or more inputs are positive infinity, probability mass is split equally among those entries. If all inputs are negative infinity, all results are NaN.
Exceptions
| Argument | vector is null. |