Add Confidence field and enrich deck descriptions with selection stats - #22
Merged
Merged
Conversation
…n stats - Write the Bayesian quality score to CSV as a Confidence column and expose it as an Anki field, shown on the card back as a star pill. - Rebuild deck descriptions to mirror the generation-time report: summary line, motif/theme coverage, full theme-frequency breakdown, and a Woodpecker-based mastery-time estimate (~20 new puzzles/day). - Update tests and README accordingly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two follow-up improvements on top of the sampling refactor:
1. New
ConfidenceAnki field_quality, combining Popularity + NbPlays, confidence-weighted) is now written to each puzzle CSV as aConfidencecolumn.Confidencefield to the Anki note model (appended last to keep field order stable for existing collections).★ {score}pill so users can gauge how community-validated a puzzle is.2. Richer deck descriptions
Each generated sub-deck description now mirrors the generation-time coverage report:
Example:
Changes
lichess_optimized_puzzles_datasets.py: writeConfidencecolumn;_format_confidencehelper.build_apkg.py: new field +_row_to_notemapping +SAMPLE_CARDS; rewritten_build_description(now takes astatsdict) with_mastery_sentenceand_coverage_lineshelpers.templates/back.html: confidence pill.tests/build_apkg_test.py: updated to the new description format andstatsparam; added breakdown/mastery tests.README.md: documents the field and the enriched descriptions.Verification
pytest tests/— 60 passedGenerated by Claude Code