if (isProbabilityScore()) { double limited = Math.max(1.0e-20, Math.min(score, 1 - 1.0e-20)); double v0 = entropy.get(trueValue, 0); entropy.set(trueValue, 0, (Math.log1p(-limited) - v0) / samples + v0); double v1 = entropy.get(trueValue, 1); entropy.set(trueValue, 1, (Math.log(limited) - v1) / samples + v1);
if (isProbabilityScore()) { double limited = Math.max(1.0e-20, Math.min(score, 1 - 1.0e-20)); double v0 = entropy.get(trueValue, 0); entropy.set(trueValue, 0, (Math.log1p(-limited) - v0) / samples + v0); double v1 = entropy.get(trueValue, 1); entropy.set(trueValue, 1, (Math.log(limited) - v1) / samples + v1);
if (isProbabilityScore()) { double limited = Math.max(1.0e-20, Math.min(score, 1 - 1.0e-20)); double v0 = entropy.get(trueValue, 0); entropy.set(trueValue, 0, (Math.log1p(-limited) - v0) / samples + v0); double v1 = entropy.get(trueValue, 1); entropy.set(trueValue, 1, (Math.log(limited) - v1) / samples + v1);