Documentation
¶
Overview ¶
Command sim is NovaTrail's learner simulator: virtual learners of different populations answer tasks through learner-model and engine, and the numbers they give hold every change to either before it is merged. It is a tool of CI, not a library: the parts of the bench live in internal/ packages, and a caller that builds sim with go.work runs it as `go run github.com/altnovatrail/sim <command>` (R10).
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
bench
Package bench runs cells of virtual learners into a file of results, one line a learner, and reads two such files in pairs by learner.
|
Package bench runs cells of virtual learners into a file of results, one line a learner, and reads two such files in pairs by learner. |
|
criterion
Package criterion judges candidates against the base by the criterion of the model, of the engine, or of a pair of both: the constraints, the score as the share of the path from the base to the ceiling, "better", the choice, the confirmation on held-out learners and the way out (R25).
|
Package criterion judges candidates against the base by the criterion of the model, of the engine, or of a pair of both: the constraints, the score as the share of the path from the base to the ceiling, "better", the choice, the confirmation on held-out learners and the way out (R25). |
|
gate
Package gate holds the gate of the bench: the gate file, which names what the gate's numbers were recorded on — the commits of the libraries, the pinned packages, the versions the workspace chose and the go lines — and the bands; the gate's cells and numbers; the checks of a run against the file; and the recording of the bands anew (R26).
|
Package gate holds the gate of the bench: the gate file, which names what the gate's numbers were recorded on — the commits of the libraries, the pinned packages, the versions the workspace chose and the go lines — and the bands; the gate's cells and numbers; the checks of a run against the file; and the recording of the bands anew (R26). |
|
invariant
Package invariant checks the invariants of the bench on every learner's run, with a tolerance of zero: one breach on one learner makes the run red (docs/architecture.md, section 3.5; R04; R17 in docs/decisions.md).
|
Package invariant checks the invariants of the bench on every learner's run, with a tolerance of zero: one breach on one learner makes the run red (docs/architecture.md, section 3.5; R04; R17 in docs/decisions.md). |
|
learner
Package learner is the virtual learner of the bench: its truth, which the bench knows and the learner model estimates from its attempts, and its calendar (docs/architecture.md, section 3.1; R03).
|
Package learner is the virtual learner of the bench: its truth, which the bench knows and the learner model estimates from its attempts, and its calendar (docs/architecture.md, section 3.1; R03). |
|
measure
Package measure reads the measures of the bench off the runs of virtual learners, by the truth the bench knows and what the learner model and the engine gave (docs/architecture.md, section 3.5; R04; R22 in docs/decisions.md).
|
Package measure reads the measures of the bench off the runs of virtual learners, by the truth the bench knows and what the learner model and the engine gave (docs/architecture.md, section 3.5; R04; R22 in docs/decisions.md). |
|
pack
Package pack reads published packages of modules as the bench needs them: the server part, server.json, by the types of spec's canonical view and without module-kit, checked through the chain of digests from a pinned module index (docs/architecture.md, sections 1, 3.3 and 3.9; R62, R72, R77 spec; the text of the format, sections 25 and 26).
|
Package pack reads published packages of modules as the bench needs them: the server part, server.json, by the types of spec's canonical view and without module-kit, checked through the chain of digests from a pinned module index (docs/architecture.md, sections 1, 3.3 and 3.9; R62, R72, R77 spec; the text of the format, sections 25 and 26). |
|
population
Package population names the populations of virtual learners: each changes one assumption of the base population, on the graphs it says, and runs to its limit (docs/architecture.md, section 3.2; R03; R18 in docs/decisions.md).
|
Package population names the populations of virtual learners: each changes one assumption of the base population, on the graphs it says, and runs to its limit (docs/architecture.md, section 3.2; R03; R18 in docs/decisions.md). |
|
published
Package published holds the published packages of modules the bench is pinned to, as their release has them, and reads them through the chain of digests (docs/architecture.md, sections 3.3 and 3.9; R14 in docs/decisions.md).
|
Package published holds the published packages of modules the bench is pinned to, as their release has them, and reads them through the chain of digests (docs/architecture.md, sections 3.3 and 3.9; R14 in docs/decisions.md). |
|
run
Package run runs a virtual learner through learner-model and engine, as the platform runs a learner through them: at each time its calendar gives, the bench builds the engine's input as api would — the model's reading, the pool and the lessons the learner's age category suits, the runs of lessons, the attempts closed by "Done", the last closed attempt and the summary of what was handed out —, takes the engine's choice, has the learner answer by its truth, and gives the model the evidence (docs/architecture.md, sections 1 and 3; architecture 3.8 spec; R104, R107 spec; R16 in docs/decisions.md).
|
Package run runs a virtual learner through learner-model and engine, as the platform runs a learner through them: at each time its calendar gives, the bench builds the engine's input as api would — the model's reading, the pool and the lessons the learner's age category suits, the runs of lessons, the attempts closed by "Done", the last closed attempt and the summary of what was handed out —, takes the engine's choice, has the learner answer by its truth, and gives the model the evidence (docs/architecture.md, sections 1 and 3; architecture 3.8 spec; R104, R107 spec; R16 in docs/decisions.md). |
|
seed
Package seed gives the bench its numbers: every draw of sim comes from a place of randomness of the module format, a seed and names, by the platform's one generator (docs/architecture.md, sections 3.4 and 3.8; R27, R59 spec; the text of the format, section 22).
|
Package seed gives the bench its numbers: every draw of sim comes from a place of randomness of the module format, a seed and names, by the platform's one generator (docs/architecture.md, sections 3.4 and 3.8; R27, R59 spec; the text of the format, section 22). |
|
synthetic
Package synthetic builds the bench's own synthetic packages: canonical views in the shape of the three modules of the first slice, for the code and the tests of the bench and not to judge candidates by (docs/architecture.md, section 3.3; R03; R19 in docs/decisions.md).
|
Package synthetic builds the bench's own synthetic packages: canonical views in the shape of the three modules of the first slice, for the code and the tests of the bench and not to judge candidates by (docs/architecture.md, section 3.3; R03; R19 in docs/decisions.md). |