Closed
Description
version: 0.11
This implementation:
will result in NaN
as the output even for moderate scores of around 90f:
var foo = new[] { 90f, 2, -2f };
NormalizeSoftmax(foo, 3);
Seen very easily in the debugger (the float cast will result in Inf
). I'm getting back a score of roughly 102 for some of my data sets and models. Though they're extremely rare.