Documentation
¶
Overview ¶
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. Each learner's run gives its sums; a number of a cell is read from the sums of all its learners, and its 95 % interval from Resamples resamples of the learners, the same resamples for every number of the cell, so that two cells of the same learners compare by learner.
Index ¶
- Constants
- func Ends(vals []float64) (float64, float64)
- func ItemName(area string) string
- type GoalReach
- type GoalTrace
- type Number
- type Pair
- type Sums
- func Caught(t *Trace) Sums
- func Engine(rec *run.Record) Sums
- func Fair(grade, reference *Trace) Sums
- func GoalPair(goal, none GoalReach) Sums
- func GoalSums(r GoalReach) Sums
- func Guarded(t *Trace) Sums
- func Model(rec *run.Record) Sums
- func Note(rec *run.Record) Sums
- func Oracle(rec *run.Record) Sums
- type Trace
- type Value
Constants ¶
const ( FairLength = 200 FairBy = 50 FairGap = settleError FairAnswers = settleAnswers )
The numbers of M11, fairness by the grade: the run's length in answers, which a learner who never comes to the reference's estimate counts as; the answers by which the estimate is the same; the gap under which, and the answers for which in a row, it holds, as M3 settles.
const GoalLength = FairLength
GoalLength is the time to the goal of a learner who never reaches its item within the run: the run's length in answers, as M11 counts a learner who never comes (E7).
const (
Resamples = 2000
)
Resamples is the number of resamples of the learners an interval is read from, and tail the resamples left out below its low end and above its high end, 2.5 % of them each.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoalReach ¶ added in v0.1.44
type GoalReach struct {
Item string `json:"item"`
Skills []string `json:"skills"`
Answers int `json:"answers"`
Reached bool `json:"reached"`
Outside []string `json:"outside"`
Retention float64 `json:"retention"`
Retained int `json:"retained"`
Reviews int `json:"reviews"`
}
GoalReach is one area of the goal a run watched: the item, "area <code>"; the skills whose mastery reaches it; the first answers of items with a verdict from the setting of the goal, before the learner's first choice, to the end of the attempt after which the model held every one of them mastered at once, or to the choice the engine's preview of the area first gave nothing at, GoalLength when neither came within the run, and whether one came (E7); and E8 on the modules outside the area — the learner's modules none of whose skills with a verdict it holds —: R* on the last day of the run of their skills with a verdict the truth has mastered then, summed with their number, and the choices by repetition or probe of their tasks.
type GoalTrace ¶ added in v0.1.44
type GoalTrace struct {
Items []GoalReach `json:"items"`
}
GoalTrace is what E7 and E8 read of one learner's run, written into its line in the cells of the goal for the tutor alone: each item the run watched.
type Number ¶
Number is a number of a cell: its name and how it is read from the sums of the cell's learners. It is read only when its sums allow it, for a count above zero.
func EngineNumbers ¶
func EngineNumbers() []Number
EngineNumbers are the numbers of the measures of the engine a cell is read for.
func FairNumbers ¶ added in v0.1.18
func FairNumbers() []Number
FairNumbers are the numbers of M11, read off a cell of pairs of a grade and the reference.
func GoalNumbers ¶ added in v0.1.44
func GoalNumbers() []Number
GoalNumbers are the numbers of E7 and E8 read off a cell of learners by their sums of GoalSums: the mean time to the goal, the share who never reach it; the mean R* on the last day of the skills of the modules outside the area the truth has mastered then, and the mean repetitions and probes of those modules a learner who has one — each read only when there is one.
func GoalPairNumbers ¶ added in v0.1.44
func GoalPairNumbers() []Number
GoalPairNumbers are the numbers read off a cell of pairs of GoalPair: E7.ratio, the mean time to the goal with it set over the mean of the same learners with the empty goal; each side's numbers of GoalNumbers, in their order, the side's first.
func GuardNumbers ¶ added in v0.1.28
func GuardNumbers() []Number
GuardNumbers are the numbers of M12, read off a cell of learners by their sums of Guarded: the share of them whose level the guard lowered.
func ModelNumbers ¶
func ModelNumbers() []Number
ModelNumbers are the numbers of the measures of the model a cell is read for.
func NoteNumbers ¶ added in v0.1.15
func NoteNumbers() []Number
NoteNumbers are the numbers of the note of consolidation in a lesson a cell is read for: the consolidations a pass, the shares of the items of the lessons' links and of the consolidations, and the mean P* of the next link after a failure. The criteria hold none of them.
func TruthNumbers ¶ added in v0.1.28
func TruthNumbers() []Number
TruthNumbers are the numbers of M13, read off a cell of learners by their sums of Caught: the mean answers until the estimate holds at the truth, and the share for whom it does by FairBy.
type Pair ¶
type Pair struct {
A, B, Diff Value
}
Pair is a number read off two cells of the same learners — two rules, or a rule and the oracle — and their difference a − b, with its 95 % interval from the same resamples in both.
type Sums ¶
Sums are what one learner's run gives the measures: named sums, added over learners.
func Caught ¶ added in v0.1.28
Caught gives the sums of M13 of one learner, against its own truth: the answers k before the first of FairAnswers in a row at which the model's module level lies within FairGap of the truth's, counted as Fair counts them — FairLength when it never holds —, and whether k is at most FairBy.
func Fair ¶ added in v0.1.18
Fair gives the sums of M11 of the learner n of a grade against the learner n of the reference grade, a pair of one truth and one unit: the answers k before the first of FairAnswers in a row at which the two levels lie within FairGap — none before it gives 0, as M3 counts, and a learner for whom it never holds counts as FairLength —; whether k is at most FairBy; and the attempts of each at each band after FairBy answers, every band either has under both sides. So a cell of pairs reads as a cell of learners, its resamples of n those of both sides at once.
func GoalPair ¶ added in v0.1.44
GoalPair gives the sums of the learner n with the goal set against the learner n of its twin, the same learner with the empty goal, on the same item: each side's sums of GoalSums under the prefix "goal." or "none.", and one pair. So a cell of pairs reads as a cell of learners, its resamples of n those of both sides at once.
func GoalSums ¶ added in v0.1.44
GoalSums gives the sums of E7 and E8 of one item of one learner, so that a cell of the goal reads as a cell of learners: the time to the goal, whether it never came, and on the modules outside the area, when it leaves one, R* on the last day with the skills it is summed over and the repetitions and probes.
func Guarded ¶ added in v0.1.28
Guarded gives the sums of M12 of one learner, read on the reference's cell, whose truth is the band of its grade: whether the guard of learner-model lowered its module level at least once on the run, a false firing there by construction.
func Note ¶ added in v0.1.15
Note gives the sums of one learner's run for the note of consolidation in a lesson, E6, which decides nothing: no check, no path and no weight, only the note of a judgement beside its criterion. It reads the lessons whose skills all have a verdict, the ones the run calls the engine in:
- the consolidations in a lesson — a task right before the lesson resumed — and the passes;
- the items with a verdict of the lesson's task links and of the consolidations, by P* when given, in the corridor, too hard and too easy, as E1 reads them;
- P* when given of the items of the next task link of the same pass after a link that failed on a skill of the lesson, as the engine reads a failure (invariant.Failed).
func Oracle ¶
Oracle gives the sums of the ceiling of the model on one learner's run, the oracle: its estimate is the truth θ* + δ*, its P is P*, it declares "mastered" by true mastery, and it holds an anchor when the truth does. It reads the same answers as the model of the run, so that the two compare by learner.
type Trace ¶ added in v0.1.18
type Trace struct {
// Levels are θ of the model after each of the first FairLength answers — the first answers of
// items with a verdict —, in their order: each answer of an attempt has the level after it.
Levels []float64 `json:"levels"`
// Truth is θ* of the truth's module level after each of the same answers, as run.Obs gives it,
// for M13. Empty in a file of results that did not record it, where Caught gives FairLength.
Truth []float64 `json:"truth,omitempty"`
// Bands count the attempts with a verdict whose first answer is the 51st or later, to the end of
// the run, those of lessons and consolidations among them, by the place of their task's band:
// Bands[p-1] for the place p.
Bands []int `json:"bands"`
// Guard is how often the guard of learner-model lowered the module level on the whole run, as
// run.Record counts it; read by M12 on the reference's cell alone. A file of a model with no
// guard has none.
Guard int `json:"guard,omitempty"`
// Corrected is the first answers before the adult corrected the module level, as run.Record
// gives it, 0 when no adult did (C-).
Corrected int `json:"corrected,omitempty"`
}
Trace is what M11 reads of one learner's run, written into its line in the cells of fairness by the grade alone: the model's module level after each answer, and the attempts with a verdict at each band once FairBy answers are behind.
type Value ¶
type Value struct {
Name string
Value, Low, High float64
// SE is the standard error of the value: the standard deviation of its values over the
// resamples.
SE float64
Read bool
NoGraph bool
// Resampled are its values over the resamples, in their order, when it is read: the k-th of two
// numbers of the same learners comes of the same resample.
Resampled []float64
}
Value is a number read off a cell: its value and the ends of its 95 % interval. A number the cell cannot read is not Read, and in a check it is unmet; on a graph with a module whose package is not published it is NoGraph, and its checks are neither met nor failed.
func Read ¶
Read reads the numbers off a cell of learners on a graph, each with its 95 % interval: the 51st lowest and the 51st highest of its values over Resamples resamples of the learners, drawn from the place of the working seed with the names bootstrap and the cell's name, so that the intervals are the same on every run and every build. The cell's name is its population and graph, not its rule: the cells of the base, a candidate and a ceiling on the same learners draw the same resamples. A number that some resample cannot read is not read: its interval would rest only on the resamples that drew a case.