(FSRS) Improve presentation of log loss and RMSE (#2805)

* (FSRS) Improve presentation of log loss and RMSE

The number of decimal places in log loss have been increased from 3 to 4. Can help in better comparison of weights especially when the log loss with both are same up to 3 places of decimal. Also makes it consistent with the Python optimizer.

RMSE has been expressed in percent, making it easier to interpret.

* Fix formatting

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
This commit is contained in:
user1823 2023-11-05 09:26:20 +05:30 committed by GitHub
parent 502e7e3d63
commit 58904dcad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,11 +120,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
setTimeout( setTimeout(
() => () =>
alert( alert(
`Log loss: ${resp.logLoss.toFixed( `Log loss: ${resp.logLoss.toFixed(4)}, RMSE(bins): ${(
3, resp.rmseBins * 100
)}, RMSE(bins): ${resp.rmseBins.toFixed( ).toFixed(2)}%. ${tr.deckConfigSmallerIsBetter()}`,
3,
)}. ${tr.deckConfigSmallerIsBetter()}`,
), ),
200, 200,
); );