-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display the number of reviews when pressing “Evaluate” #3123
Comments
In file The idea would be to create a persistent variable where to store the latest FSRS optimization reviews count in Anki. For simplicity I tested this with a variable and initially set it as let latestOptimizationReviewsCount = 0 // TODO store it persistently Then in (progress) => {
if (progress.value.case === "computeWeights") {
computeWeightsProgress = progress.value.value;
// Update latestOptimizationReviewsCount
if (latestOptimizationReviewsCount == 0 || computeWeightsProgress.reviews != latestOptimizationReviewsCount) {
latestOptimizationReviewsCount = computeWeightsProgress.reviews
}
}
}, To change the dialog in
And then add it to the alert alert(
`Log loss: ${resp.logLoss.toFixed(4)}, RMSE(bins): ${(
resp.rmseBins * 100
).toFixed(2)}%. ${tr.deckConfigSmallerIsBetter()}` +
` ${tr.deckConfigLatestOptimizationReviews({reviewCount: latestOptimizationReviewsCount})}`,
), Edit: I see that Anki uses SQLite and the database is handled via Rust, I'm unsure how to interact with it from Svelte because I'm not familiar with the codebase. By looking at the To note: From my understanding |
You can see that ComputeFsrsWeightsResponse in the .proto file returns the number of fsrs items. We could do the same with EvaluateWeightsResponse. |
I initially didn't look at protobuf, my bad You mean modifying message EvaluateWeightsResponse {
float log_loss = 1;
float rmse_bins = 2;
uint32 fsrs_items = 3; <- Add this field
} Then at From my understanding the returned fsrs_items in |
I'm afraid I don't have time at the moment to step you through it - if you're not sure how to proceed, this might not be the best issue to take on. |
I assume this was solved by #3165 |
Sorry for saying it so late, but I have another suggestion. |
Originally reported on https://forums.ankiweb.net/t/display-the-number-of-reviews-when-pressing-evaluate/43287
The text was updated successfully, but these errors were encountered: