Logseq/Q/What data does srs-of-matrix.edn store in a Logseq graph?
Properties
- logseq-entity
- Logseq/Entity/Question
- see-also
- Logseq/Flashcard
What data does
srs-of-matrix.ednstore in a Logseq graph?AI Answer
- Short answer: It stores the shared SM-2 interval matrix — a lookup table mapping
{repetition-count, easiness-factor}to interval-in-days — used by Logseq's built-in#cardspaced repetition system. Structure
- The file is EDN (Clojure's Extensible Data Notation). Its shape is:
- Outer key (integer
0,1,2, …): how many consecutive successful reviews a card has had (the repetition numbernin SM-2). - Inner key (float e.g.
2.5,2.36): the easiness factor (EF) for that cell. - Inner value (float): the calculated next interval in days.
Why it's called a "matrix"
Relationship to per-card state
- There are two separate pieces of state:
- Per-card (block properties on each
#cardblock):card-repeats::,card-next-schedule::,card-last-interval::,card-ease-factor::. This records this specific card's history — how many times reviewed, current EF, next due date. - The matrix (
srs-of-matrix.edn): answers "for any card at repetitionnwith easiness factorEF, what is the next interval?" It does not know or care which card is asking.
- Per-card (block properties on each
- At review time the two work together:
- Two different cards with the same
(n, EF)get the same interval from the matrix. The matrix is a graph-wide learned lookup table, not a per-card record.
- There are two separate pieces of state:
Per-graph, local-only
- Answer/Official from Logseq source — spaced repetition
- Short answer: It stores the shared SM-2 interval matrix — a lookup table mapping