Vector.Soft Max<T> Method
Computes the softmax function of a vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
The softmax function applied to vector.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
public static Vector<T> SoftMax<T>(
Vector<T> vector
)
Parameters
- vector Vector<T>
- A vector.
Type Parameters
- T
Return Value
Vector<T>The softmax function applied to vector.
Remarks
The implementation is numerically stable for finite inputs. 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. |