Documentation
¶
Overview ¶
Package report turns the log of a run into the measurement's numbers and its criterion, asking no model, and writes them as Markdown and CSV. A report holds no handwriting: numbers, the numbers and scenarios of sheets, and the names of judges and forms.
The report of a run of free writing, in version 2 of the judge's prompt, tells more: the boxes on the sheets with a mistake and form D against form A on them, the data for whether the course of writing may go to AI; the answers by layout and by where the first error stands; and the answers sheet by sheet.
Index ¶
- Constants
- func Joined(set string, parts ...*evalv1.Report) (*evalv1.Report, error)
- func ReportFile(logBase, name string) string
- func Upper(events, totals []int) float64
- type Agreement
- type Apart
- type Boxes
- type Breakdown
- type Caption
- type Cell
- type Comparison
- type Correct
- type CorrectCell
- type CorrectSet
- type Cost
- type Count
- type Criterion
- type CriterionMeasures
- type Decision
- type Errors
- type EssayDecision
- type EssayHead
- type EssayMeasures
- type Essays
- func (r *Essays) CSV(w io.Writer) error
- func (r *Essays) Feedback(w io.Writer, logName string) error
- func (r *Essays) Markdown(w io.Writer, logName string) error
- func (r *Essays) ProtocolCSV(w io.Writer) error
- func (r *Essays) Readable() (suffix, label string, write func(io.Writer, string) error)
- func (r *Essays) Reports() []Named
- func (r *Essays) Summary() string
- type EssaysCell
- type EssaysReader
- type Found
- type Height
- type Hint
- func (r *Hint) CSV(w io.Writer) error
- func (r *Hint) Hints(w io.Writer, logName string) error
- func (r *Hint) Markdown(w io.Writer, logName string) error
- func (r *Hint) Readable() (suffix, label string, write func(io.Writer, string) error)
- func (r *Hint) Summary() string
- func (r *Hint) ToRead() []*hint.CallRecord
- func (r *Hint) Words() []WordsCell
- type HintCell
- type JudgeCell
- type Measures
- type Named
- type Pair
- type Policy
- type Reading
- type ReadingCell
- type ReadingMeasures
- type Report
- type RubricDecision
- type Share
- type SheetRow
- type SlotMeasures
- type SlotShare
- type StateCell
- type TaskLeaks
- type Test
- type Threshold
- type WordsCell
- type WordsCount
- type WordsDecision
- type WordsJudge
- type WordsSet
- type Workbook
- type WorkbookCell
- type WorkbookDecision
- type WorkbookItems
- type WorkbookMirrored
Constants ¶
const ( // FullTarget is the target of the stage full: the upper bound of the share of false alarms, and // of false "correct", no more than 1 %. FullTarget = 0.01 // AuthorSlots is how many answer slots of the stage author at least have a truth that is not // "not yet", so that a false alarm could happen on them: 30, whose bound with no event is near // 10 %. AuthorSlots = 30 // AuthorWrongSlots is how many at least have a truth that is not "correct", so that a false // "correct" could happen on them: without them the stage would pass that share on nothing. AuthorWrongSlots = 20 // WorkbookSet is the set the rule of the workbook admits on: the test part of // eval/workbook-gen.json, pages 21–300, as the runner's report names it, without the dev part, // whose pages tuned the prompt. WorkbookSet = "workbook-gen-test" )
The rule of admission: which stage a runner's report admits its readers to. Only a report of reading handwriting is ruled on: a sheet's by Admit, a workbook's by AdmitWorkbook.
const ( // EssaySet is the set the rules of the essay admit on: the test part of eval/essays-gen.json, // essays 21–300, as the runner's report names it, without the dev part, the first 20. EssaySet = "essays-gen-test" // EssayWordsTarget is the most upper 95 % bound, by essay, of the words the reading read wrong. EssayWordsTarget = 0.01 // RubricTarget is the most upper 95 % bound, by essay, of the false alarms on met criteria, the // main measure of an assessment by a rubric. RubricTarget = 0.01 )
The rules of admission of the essay: its reading, CallEssay, and the assessment of the text read by the rubric, CallRubric, each with a stage of its own, on a log of a run of the essays in two calls. Both give the stage author alone: their set is synthetic, and the stage full waits for the essays of adult volunteers (П-16).
const ( // WordsRepeated is the most share of hints, of the cases with questions asked, that may repeat // one of them. WordsRepeated = 0.05 // V1Leaked and V1Broken are the upper bounds of the shares of version 1 of the hint's prompt, // Opus 5.5 at high in the extended measurement: 4 hints of 900 leaked before the check, at most // 0.010, and 8 broke the platform's form of a hint, at most 0.016. Version 2 is no worse when its // shares are within them. The words after a correct answer are held to them too: they have no // version 1, and their target is to be no worse than the hint. V1Leaked = 0.010 V1Broken = 0.016 )
The rule of admission of the tutor's words: the targets the author set, of the stage author, on the author's sheets with a mistake and the set of the words that code draws.
const ( HintsToRead = 30 CaughtToRead = 10 )
The hints to read: how many the file holds, and how many of them at most are hints the leak check caught.
const ( AllSheets = "all" NoSmall = "without small letters" SmallLetters = "with small letters" )
The groups of sheets the heights are told by: every sheet, and the sheets whose writing has small letters apart from those without them. On the first the crop's estimate may fall to the height of a small letter, and the digits come out larger than asked.
const ( AfterLine = "after a line" AtPause = "at a pause" BeforeErasure = "before an erasure" )
The kinds of a state, as the report tells them.
const ( AllBoxes = "all" // Number, Fraction, Reduced and Time are the kinds of check: a number, a fraction of any form, // one in lowest terms and a time of day. Number = "number" Fraction = "fraction, any form" Reduced = "fraction in lowest terms" Time = "time" )
The groups of the boxes a cell of the report counts: all of them, each scenario, each kind of check and each writing of a fraction.
const AllCriteria = "all"
AllCriteria is the cell of every criterion together.
const Alpha = 0.05
Alpha is the threshold of the criterion's test.
const MinSheets = 5
MinSheets is how many sheets with a difference the test needs to be passed at all: with fewer, the smallest p it can give is 1/16.
Variables ¶
This section is empty.
Functions ¶
func Joined ¶ added in v0.1.11
Joined is the runner's report of one eval set of a capability that tutor reads in runs of their own, each over a part of it: the sheets in a run of the reading and the pages in a run of the workbook, as of canvas's synthetic samples. Each part's report of one reader, or one pair, gives its samples, and the report joined names the set and holds them all, ascending by ID, as a report of one run would. The reports must be of one runner, capability, verdicts, readers and repeats, and share no sample.
func ReportFile ¶ added in v0.1.9
ReportFile is the name of the file of a runner's report beside its log: the log's name without its .jsonl, the report's name, and .report.json.
func Upper ¶
Upper is the one-sided upper bound of 95 % of a share counted over sheets: the Clopper–Pearson bound on the effective size n / Deff, where Deff is the design effect of the sheets, 1 at least. events[i] of totals[i] are the sheet i's. With no events the bound is 1 − 0.05^(1/n_eff), about 3 / n_eff; with no totals at all it is 1.
Types ¶
type Agreement ¶
Agreement is how a judge agrees with the first judge of the run in "correct": of its answers "correct" with the first judge's answer at the same place, how many of the first judge's say "correct" too, and how many of all its answers say "unreadable".
type Apart ¶ added in v0.1.43
type Apart struct {
Alarm, Correct SlotShare
}
Apart are the shares of a kind of box the rule counts beside the target and holds to none.
type Boxes ¶
Boxes is what a judge's answers in a form on the sheets with a mistake come to: of the answers, how many say "error", how many of those give a box, and how many boxes are on the first error, that is, right answers.
type Breakdown ¶
type Breakdown struct {
Group string
Judge string
Sheets int
Right, Answers [4]int // by the forms in their order
}
Breakdown is the right answers of a judge, of its answers, in each form, over the sheets of a group: a layout, or where the first error stands.
type Caption ¶
type Caption struct {
Reader string
Pages int
// Bare and Captioned are the errors in each condition, over the repeats read in both.
Bare, Captioned int
// Test is the test over the pages: its Helps is the p of the reading captioned being worse, and
// its Harms of it being better.
Test Test
// OnlyCaptioned are the boxes with a false "correct" captioned and none bare.
OnlyCaptioned int
}
Caption is the line of the item against none for a reader, at 32 px, paired by pages over the repeats read in both conditions: d of a page is its errors captioned less those bare, the errors being false "correct", false alarms, extra "unreadable" and "unchecked". The rule, written before the run: a false "correct" captioned on a box that has none bare means the line does not go into the reading of a box. The line helps when the test finds the reading captioned better at p < Alpha, with no such box.
type Cell ¶
type Cell struct {
Judge string
Form judge.Form
Answers, Right int
FalseCorrect, FalseAlarm int
Unreadable, Failed int
FixedAlarms, FixedAnswers int // on erasure-fixed sheets: false alarms, of answers
BrokenRight, BrokenAnswers int // on erasure-broken sheets: right answers, of answers
Split, Repeated int // sheets whose repeats disagree, of sheets with two or more
TimeP50, TimeP95, FirstP50, FirstP95 int64
MeanUSD float64
}
Cell is what a judge's answers in a form come to.
type Comparison ¶
Comparison is form X against form Y by a judge over a set of sheets.
type Correct ¶ added in v0.1.34
type Correct struct {
// Cells are the calls of each tutor by kind of case and language, each tutor's followed by all
// its calls.
Cells []CorrectCell
// contains filtered or unexported fields
}
Correct is what a run of the words after a correct answer comes to: by tutor, kind of case and language, the words the leak check found the key or a leak phrase in, the words that break their form (words.Correct), the words the learner does not read and why, the notes taken up and the learner's sex told by the rough search, and the time and cost of a call. It holds no handwriting: numbers, the sets and numbers of sheets and the words the models wrote are in the log, and only numbers here.
func NewCorrect ¶ added in v0.1.34
NewCorrect builds the report of a log of the words after a correct answer. A log without tutors, sheets or cases has nothing to report, and a call of a sheet, a tutor or a case the log does not tell is a broken log.
func (*Correct) CSV ¶ added in v0.1.34
CSV writes the cells, a row each, a cell of all a tutor's calls with "all" for its kind and language.
type CorrectCell ¶ added in v0.1.34
type CorrectCell struct {
Tutor string
Kind correct.CaseKind
Lang sample.Lang
Calls, Came, Failed int
Leaked Share
Key, Phrase int
Broken Share
Questions, Sentences, Last, Words, Script int
Withheld Share
Echo, Gendered Share
TimeP50, TimeP95 int64
MeanUSD float64
}
CorrectCell is what the calls of a tutor of a kind of case came to in a language; a cell of all its calls has no kind and no language. Calls are those asked, Came those whose words came, read off an answer on the schema, and Failed those that did not. Each share is bounded over the sheets:
- Leaked, of the words that came: the leak check found the key or a leak phrase, Key and Phrase the words it found each in;
- Broken, of the words that came: they break their form, Questions, Sentences, Last, Words and Script the words that break each rule;
- Withheld, of the calls asked: the learner reads no words, for a failure, a leak or the form;
- Echo, of the words that came of the cases of a note: they take the note up (hint.Echo);
- Gendered, of the words that came: the rough search finds the learner's sex told (hint.Gendered), a signal for the judge of the words, which decides.
func (CorrectCell) All ¶ added in v0.1.34
func (c CorrectCell) All() bool
All is whether the cell is of all the tutor's calls.
type CorrectSet ¶ added in v0.1.34
type CorrectSet struct {
Name, SHA256 string
Correct *Correct
Judge *WordsJudge
}
CorrectSet is a log of the words after a correct answer on the cases of their set, by its file's name and SHA-256, with its report and the report of the judge's log of it.
type Cost ¶
Cost is what a call of a reader costs, for the price of the policies: the mean of its calls of the states, or, for a reader that read none, of its readings without a key at 32 px.
type Count ¶ added in v0.1.9
type Count struct {
Events, Of int
}
Count is a share as the eval protocol counts it: the events among the readings or marks it is counted among.
type Criterion ¶
type Criterion struct {
Comparison
FalseCorrectA, FalseCorrectD int
FalseAlarmA, FalseAlarmD int
Outcome string // "helps", "harms" or "not shown"
Holm bool
}
Criterion is the main check of a judge: D against A over all the sheets, with the false "correct" on sheets with a mistake and the false alarms on correct sheets of each form, what it comes to, and whether it passes with Holm's correction for the judges.
type CriterionMeasures ¶ added in v0.1.9
type CriterionMeasures struct {
Criterion int
FalseAlarm, Agreement Count
None int
Kappa *float64
// contains filtered or unexported fields
}
CriterionMeasures are the measures of a criterion of the rubric in a run of assessment: its false alarms among the people's marks met, AI's marks that are the people's, its marks of none, and Cohen's kappa, nil when there is none, p_e being 1 or no mark counted.
type Decision ¶ added in v0.1.14
type Decision struct {
Stage admission.Stage
Why string
Readers []string
Set string
Repeats int
Alarm SlotShare
Correct SlotShare
Measures *ReadingMeasures
}
Decision is what the rule makes of a report: the stage it admits its readers to, none when it admits them to nothing, and why not; the readers and the set, as the report names them; the shares of false alarms and of false "correct" over the answer slots, with their bounds; and the measures of the readings, needless "unreadable" and unchecked among them, which are shown beside and have no target.
func Admit ¶ added in v0.1.14
Admit applies the rule of admission to a report. It admits nothing on a report whose verdicts module-kit did not give, on one of another capability than reading handwriting, on one that refused a sample — a run that refuses a sample does not pass — on one that is not of a pair, and on one of a set of the workbook, which AdmitWorkbook rules on. Then the stage full is both bounds within FullTarget, and the stage author no false alarm and no false "correct" on AuthorSlots and AuthorWrongSlots slots at least. The measures of the first error and the marks of an essay, which a synthetic sample's code chose, a run of reading does not hold, and the rule counts none.
type Errors ¶
type Errors struct {
FalseCorrect, FalseAlarm, Extra int
}
Errors are a reader's errors alone: false "correct", false alarms and extra "unreadable".
type EssayDecision ¶ added in v0.1.44
type EssayDecision struct {
Stage admission.Stage
Why []string
EssayHead
Illegible, Corrected, Words Share
Failed int
}
EssayDecision is what the rule of the reading makes of a log: the stage it admits the reader to, none when it admits it to nothing, and every reason why not; and, by essay, the legible essays read illegible, the essays with an error of the learner's read corrected, of those with such errors, and the words read wrong, of the essays' words, with its bound; and the readings that failed otherwise, with no reading of the essay, illegible or not.
func AdmitEssay ¶ added in v0.1.44
func AdmitEssay(r *Essays) EssayDecision
AdmitEssay applies the rule of the reading of an essay to a log of a run of the essays in two calls: one reader, in the prompt of the reading this build asks (essay.ReadFingerprint), on the essays code drew legible, with the refusals of essayHead; then the stage author is no legible essay read illegible, no reading failed otherwise — not asked, off the schema or with no answer —, so that every essay is measured in every repeat, no essay with an error of the learner's — a word spelled wrong, a sentence that begins with a small letter, the last without its mark — read corrected, and the upper bound of the words read wrong within EssayWordsTarget. An event is an essay's when any of its repeats gave it, counted once. An essay's words read wrong are the sum of the edit distances of its repeats, as many as its words at most: the log does not tell which word a repeat read wrong, and the sum is no fewer than the words read wrong in any repeat.
type EssayHead ¶ added in v0.1.44
EssayHead is what both rules of the essay read of a log first: its reader, the assessor of the text read, its set and repeats.
type EssayMeasures ¶ added in v0.1.9
type EssayMeasures struct {
Needless, FalseAlarm, Agreement Count
None int
Criteria []CriterionMeasures
// Readings are the readings of the essays, and Unchecked those that gave nothing, by cause.
Readings int
Unchecked map[evalv1.UncheckedCause]int
}
EssayMeasures are the measures of a run of assessment: the needless "unreadable" among the readings of essays whose truth holds their text that are not unchecked; and, over the criteria the people marked, in the repeats whose essay was assessed and that AI marked met or not met, the false alarms and the agreement in all, and each criterion's.
type Essays ¶
type Essays struct {
// Readers are the readers' measures, in the order of the run.
Readers []EssaysReader
// contains filtered or unexported fields
}
Essays is the report of a run of the assessment by the rubric: the measure of О-22 for every reader — the criteria judged unmet that the essay meets, the main one, and the agreement with the planned truth, criterion by criterion, with Cohen's κ — and how the reader read the essays and kept the rule of the feedback. It has no threshold: the measure has no target yet (О-22).
func (*Essays) CSV ¶
CSV writes every judgement of a criterion, a row each: the essay, its part, the reader, the repeat, the criterion, the truth and the judgement, met, unmet or unchecked with its reason.
func (*Essays) Feedback ¶
Feedback writes the feedback for the author to read: of the first repeat, by the first reader of the run, Opus in the measurement, every essay with the criteria it does not meet by the plan, those the reader judged otherwise, the feedback as the model wrote it and what it breaks of the rule.
func (*Essays) ProtocolCSV ¶ added in v0.1.9
ProtocolCSV writes the measures of the runner's reports as CSV.
func (*Essays) Readable ¶
Readable names the feedback for the author to read: the third file of the report, .feedback.md.
type EssaysCell ¶
type EssaysCell struct {
Criterion string
FalseAlarm Share
Missed Share
Agree int
Judged int
Kappa float64
KappaDef bool
Unchecked int
// contains filtered or unexported fields
}
EssaysCell is a reader's judgements of a criterion, or of all of them: the false alarms among the judgements of criteria the essay meets, the missed ones among those of criteria it does not, both with their bounds over the essays; the judgements that agree with the truth, of all judged; κ, and whether it is defined; and the criteria left unchecked.
func (EssaysCell) KappaText ¶ added in v0.1.44
func (c EssaysCell) KappaText() string
KappaText writes κ, or "—" where it is not defined.
type EssaysReader ¶
type EssaysReader struct {
Name string
Calls, Failed int
MeanUSD float64
TimeP50, TimeP95 int64
// All is every criterion together, and Criteria each criterion of the rubric, in its order.
All EssaysCell
Criteria []EssaysCell
// Paired are the criteria of an essay judged in two repeats or more, and Unstable those of them
// the repeats judge both ways.
Paired, Unstable int
Reading essay.Reading
// Feedbacks are the calls with feedback, Breaches how many of them break each part of its rule,
// PlatformBroken how many break the platform's rule of feedback, with its 80 words
// (essay.PlatformBroken), and MeanWords and MostWords its words.
Feedbacks int
Breaches map[string]int
PlatformBroken int
MeanWords float64
MostWords int
}
EssaysReader is a reader's measures over every assessment of the run: a call, or in a run of two calls a reading and the assessment of its text. Calls and Failed count the assessments, and MeanUSD and the times are those of an assessment, both its calls together.
type Found ¶
Found is a key or a leak phrase, as the task writes it, and how many hints the check found it in.
type Height ¶
type Height struct {
Reader string
Digit int
Group string
Test Test
Sheets int
Errors, At32 int
NewFalseCorrect int
// Smaller are the sheets whose crop at the height was drawn smaller than asked, to fit.
Smaller int
}
Height is a height of digits against 32 px for a reader, on a group of sheets: paired by sheet, the finished sheet without a key in the first repeat at both heights. d of a sheet is its false "correct", false alarms and extra "unreadable" at the height less those at 32 px, a failed call counted as an extra "unreadable". The height is not worse than 32 px if the test does not find it worse at p < Alpha and no sheet has a false "correct" at it where it had none at 32 px.
type Hint ¶
type Hint struct {
// Cells are the calls of each tutor by language and rung, each tutor's followed by all its calls.
Cells []HintCell
// Tasks are the leaks by task, in the order the sheets of the log first name them.
Tasks []TaskLeaks
// contains filtered or unexported fields
}
Hint is what a run of the hint comes to: by tutor, language and rung, the hints the leak check found the answer in, before the check and after it, the hints that break their form, the fallback texts by cause, the box on the part of the first error and the model's trap against the sheet's, and the time and cost of a call; the leaks by task; and about 30 hints for the author to read. It holds no handwriting: numbers, the sets and numbers of sheets, the tasks' statements and the plan's texts, and the hints the models wrote.
func NewHint ¶
NewHint builds the report of a log of the hint. A log without tutors or without sheets has nothing to report; a log of a run that did not check its hints would read as though nothing leaked; and a call of a sheet or a tutor the log does not tell is a broken log.
func (*Hint) CSV ¶
CSV writes the cells, a row each, a cell of all a tutor's calls with "all" for its language and rung.
func (*Hint) Hints ¶
Hints writes the hints to read, each with its sheet and task as the plan and the bank tell them — the statement, the key, what the leak check searches for and the text the plan gives the first error —, the hint, what the checks found and what the learner reads.
func (*Hint) Readable ¶
Readable names the hints for the author to read: the third file of the report, .hints.md.
func (*Hint) Summary ¶
Summary is what the report says on the terminal: for every tutor, its leaks before the check and after it, its broken forms, its fallback texts and its boxes on the first error.
func (*Hint) ToRead ¶
func (r *Hint) ToRead() []*hint.CallRecord
ToRead are the hints of the first repeat the author reads: every hint the leak check caught, up to CaughtToRead, so that a false leak shows; then hints that passed both checks, taking each tutor, language and rung in turn, in the order of the run, and from each the hint of the sheet taken least so far, the first in the log on a tie, until there are HintsToRead or none is left.
type HintCell ¶
type HintCell struct {
Tutor string
Lang sample.Lang
Rung hint.Rung
Calls, Came int
Leaked Share
Key, Phrase, After int
Broken, PlatformBroken Share
Questions, Sentences, Words, Script int
FellBack Share
Failed, Leak, Form int
OnError Share
NoBox int
TrapRight, TrapOf, NoTrapRight, NoTrapOf int
TimeP50, TimeP95 int64
MeanUSD float64
}
HintCell is what the calls of a tutor in a language at a rung came to; a cell of all its calls has no language and rung 0. Calls are those asked, and Came those whose hint came, read off an answer on the schema. Each share is bounded over the sheets:
- Leaked, of the hints that came: the leak check found the key or a leak phrase in it, Key and Phrase the hints it found each in; After, of the calls asked: it found one in what the learner reads, which is nothing by construction;
- Broken, of the hints that came: the hint breaks its form, Questions, Sentences, Words and Script the hints that break each rule; PlatformBroken, the platform's form check, with its limits of words by language (hint.PlatformBroken);
- FellBack, of the calls asked: the learner reads the fallback text, Failed, Leak and Form by its cause;
- OnError, of the hints that came: the box hits the part of the first error; NoBox gave none;
- TrapRight of TrapOf: the model names the sheet's trap, on the sheets planned with one; NoTrapRight of NoTrapOf: it names none, on the sheets without.
In a log of the set of the words, a call without the work counts in neither OnError nor NoBox, since it has nothing to box, and a call given the trap found counts in no trap's column, since the model was told it.
type JudgeCell ¶ added in v0.1.19
type JudgeCell struct {
Tutor string
Kind hint.CaseKind
Lang string
Judged, Failed int
Gender, OffTask, NotForAge, MentionsNote, Flagged Share
Rough, Disagree int
}
JudgeCell is what the judge said of the hints of a tutor of a kind of case in a language; a cell of all its hints has no kind and no language. Judged are the hints whose verdict came, and Failed those whose did not. Each share is of the hints judged, bounded over the sheets: Gender, the hint tells the learner's sex; OffTask, it leaves the task; NotForAge, it does not suit a child; MentionsNote, of the hints of a note, it takes the note up; Flagged, any of them. Rough are the hints the rough search finds the sex told in, and Disagree those where it and the judge differ.
type Measures ¶ added in v0.1.9
type Measures struct {
Reading *ReadingMeasures
Essay *EssayMeasures
}
Measures are a report's measures: of reading or of assessment, by its capability.
func MeasuresOf ¶ added in v0.1.9
MeasuresOf counts the measures of a report from its records.
type Named ¶ added in v0.1.9
Named is a runner's report with the name its file takes beside the log: the reader's, or the pair's, strong+fast.
func EssayReports ¶ added in v0.1.9
EssayReports are the reports of a run of the assessment of essays, CAPABILITY_RUBRIC_ASSESSMENT, one for each reader, which reads and assesses the essay, in one call or two: each essay with the people's marks of its markup, and a reading for each repeat.
func ReadingReports ¶ added in v0.1.9
ReadingReports are the reports of a run of the reading of sheets, CAPABILITY_HANDWRITING_READING: each sheet's one answer slot, with its truth, and a reading for each repeat of the finished sheet without a key at 32 px.
func WorkbookReports ¶ added in v0.1.9
WorkbookReports are the reports of a run of the reading of the workbook, CAPABILITY_HANDWRITING_READING: each page's filled boxes, which a model reads, with their truths, and a reading of each for each repeat of the page bare at 32 px. In a run of admission, plain, every reader reads in every repeat, the one that reads once too (workbook.Plain).
type Pair ¶
type Pair struct {
Strong, Fast string
Sheets, Released int
FalseCorrect, FalseAlarm, Extra int
StrongAlone, FastAlone Errors
FastCorrect, BothCorrect, FastSendsOn int
}
Pair is the rule of two readers (Т-33) on the readings without a key of the finished sheets at 32 px, of the first repeat, as api will run it: module-kit joins the two observations, observation.Join, and gives the verdict on the joined one. A sheet is released when the two read one value — the check compares them equal and gives them one verdict —, and its verdict is the joined one; otherwise it is "unreadable". Coverage is the share released, and the errors among the released are counted against those of each reader alone. The fast reader's "correct" and the strong one's with it give p of the hybrid: the share the fast reader sends on.
type Policy ¶
Policy is how many readings a sheet would take beyond its sending by a policy of reading on its own (О-8): the mean, the median and the most over the sheets.
type Reading ¶
type Reading struct {
// Thresholds are the threshold of one call, a reader each.
Thresholds []Threshold
// Cells are the readings of the finished sheets at 32 px, by reader and condition.
Cells []ReadingCell
// Pairs are the strong reader, Opus, with each fast one.
Pairs []Pair
// Heights are the other heights of digits against 32 px, a reader, a height and a group of
// sheets each; States the readings of the states, a reader and a kind each; Policies the
// readings of a sheet by each policy of reading on its own, and Costs the price of a call of
// each reader.
Heights []Height
States []StateCell
Policies []Policy
Costs []Cost
// contains filtered or unexported fields
}
Reading is what a run of the reading comes to: the threshold of one call for every reader, the readings by reader and condition, the rule of two readers, the other heights of digits, the states and the readings by each policy of reading on its own (О-8, О-21). It holds no handwriting: numbers, the sets and numbers of sheets, and the names of readers and conditions.
func NewReading ¶
NewReading builds the report of a run of the reading from its log. It refuses a log without readers or sheets, and one whose calls name a sheet, a reader or a condition the log does not have.
func (*Reading) Advice ¶
Advice is the height of digits the report advises spec to take by default: the smallest of 16 and 24 px not worse than 32 px, on every sheet, for every reader that read any height; a reader that did not read that one leaves it unadvised. Otherwise 32 px. Decided is whether the log is of the test part, the only one that decides; read is whether the run read the heights at all.
func (*Reading) ProtocolCSV ¶ added in v0.1.9
ProtocolCSV writes the measures of the runner's reports as CSV.
type ReadingCell ¶
type ReadingCell struct {
Reader string
Condition reading.Condition
Calls int
Right int
Failed int
Under int
FalseCorrect, FalseAlarm, Extra Share
PartsRead, PartsOf int
TimeP50, TimeP95 int64
MeanUSD float64
}
ReadingCell is the readings of the finished sheets at 32 px by a reader in a condition: how many were right, false "correct" — "correct" on a sheet whose outcome is not —, false alarms — "not yet" on a correct sheet —, extra "unreadable" — on a sheet whose outcome is correct or an error, a failed call counted with them — and failed; each share bounded over the sheets, among the calls that can have it: the false "correct" and false alarms among those that did not fail. How many were read under the key, how many parts of writing of the markup were read as written, and the time and cost of a call.
type ReadingMeasures ¶ added in v0.1.9
type ReadingMeasures struct {
All, Mirrored, CrossedOut SlotMeasures
}
ReadingMeasures are the measures of a run of reading: on all its answer slots, and apart on those noted mirrored and on those noted crossed out.
type Report ¶
type Report struct {
// Main is the criterion, D against A, a judge each, and Helps the overall conclusion.
Main []Criterion
Helps bool
// Others are the comparisons without a threshold, on the sheets with frames.
Others []Comparison
// Cells are the answers by judge and form.
Cells []Cell
// Agreements are those of every other judge with the first of the run, in "correct".
Agreements []Agreement
// Free tells a run of free writing, in version 2 of the prompt; the rest only such a run has.
Free bool
// Boxes are the boxes of the answers on the sheets with a mistake, by judge and form, and
// OnMistakes form D against form A on those sheets, a judge each: the data for whether the course
// of writing may go to AI.
Boxes []Boxes
OnMistakes []Comparison
// ByLayout and ByFirstError are the right answers by the layout of a sheet and by where its first
// error stands, a judge each, and BySheet those of every sheet by every judge.
ByLayout, ByFirstError []Breakdown
BySheet []SheetRow
// contains filtered or unexported fields
}
Report is what a run's log comes to.
type RubricDecision ¶ added in v0.1.44
type RubricDecision struct {
Stage admission.Stage
Why []string
EssayHead
Alarm, Missed Share
Criteria []EssaysCell
Failed, Unchecked int
Judge string
ControlsRight, Controls int
Feedbacks, Judged int
JudgeFailed int
Gender, OffTask, NotForAge WordsCount
Broken int
}
RubricDecision is what the rule of the rubric makes of a log and the judge's logs: the stage, none when it admits the assessor to nothing, and every reason why not; by essay, the false alarms on met criteria, with the bound the target reads, and the missed "not met"; the criteria, each with κ; the assessments that failed, and the judgements a valid answer left unchecked, a criterion judged twice or not at all; the judge, its control phrases and what it flagged of the feedback that came; and the feedback that came and breaks the platform's rule of feedback. The missed "not met", κ, the judgements unchecked and the broken rule are shown beside and have no target.
func AdmitRubric ¶ added in v0.1.44
func AdmitRubric(r *Essays, name, sum string, controls, judge *WordsJudge) RubricDecision
AdmitRubric applies the rule of the assessment by the rubric to a log of a run of the essays in two calls, by its file's name and SHA-256, with the judge's run on its control phrases and its log of the log's feedback: the assessor, in the prompt of the assessment of a text this build asks (essay.TextFingerprint), on the text the reading of this build read (essay.ReadFingerprint), with the refusals of essayHead; the judge, in the prompt of this build, passed every control phrase and judged every feedback that came, of this log; then the stage author is no assessment failed — its reading failed, it was not asked, or it came off the schema —, so that every essay is assessed in every repeat, the upper bound of the false alarms on met criteria within RubricTarget, and the judge flags no feedback for telling the learner's sex, leaving the task or not suiting a child. The unit is the criterion of an essay: a false alarm when any repeat judged a met criterion unmet, counted once, of the met criteria judged at least once, the bound by essay. The feedback is in English alone, the language the run asks: another waits for its own measurement.
type Share ¶
type Share struct {
Share is a count of events among the answers that can have them, and its upper bound of 95 % over the sheets.
type SheetRow ¶
type SheetRow struct {
Sheet *measure.SheetRecord
Judge string
Right, Answers [4]int // by the forms in their order
}
SheetRow is the right answers of a sheet by a judge, of its answers, in each form, repeats together.
type SlotMeasures ¶ added in v0.1.9
type SlotMeasures struct {
FalseAlarm, FalseCorrect, Needless, Kept, OtherTrap Count
Readings int
Unchecked map[evalv1.UncheckedCause]int
}
SlotMeasures are the measures of a run of reading on a set of its answer slots, each in a repeat: a false alarm, the main measure, a false "correct", a needless "unreadable", an "unreadable" kept and another trap, and how many readings are unchecked, by cause, among all of them.
type SlotShare ¶ added in v0.1.14
type SlotShare struct {
SlotShare is a share counted over answer slots rather than readings: a slot is an event when any of its readings that is not unchecked is one, and it is counted when one of them at least is. The readings of one slot are repeats of one work, not draws of their own, so the bound counts each slot once, conservatively: with no event at all report.Upper could not widen it for them.
type StateCell ¶
type StateCell struct {
Reader, Kind string
Calls, Failed int
Early Share
AnswerDone, Right int
Erasing int
DoneRead, DoneOf int
Invented, NotDone int
BegunAsDone, Begun int
}
StateCell is the readings of the states of a kind by a reader, without a key at 32 px, over the calls that did not fail: how many gave "correct" or "not yet" while the answer was not yet written whole, out of place; of those where it was, and nothing to be erased later was still on the sheet, how many were right; and how the unfinished work was read (О-21): the parts written whole read as written, the results given while the answer was not written whole, and the parts only begun read as if written whole, by a part of the observation that reads no part written whole. A state that still shows what is erased later has a truth the markup does not tell, and gives no verdict to score.
type TaskLeaks ¶
TaskLeaks are the leaks of the hints of a task that came: whether the check searches for its key — a key the statement shows it does not —, how many hints came and how many leaked, and what the check found, each with how many hints it was found in, the most first, keys before phrases on a tie.
type Test ¶
Test is the exact one-sided sign-permutation test of a sum of differences over sheets: of all the ways to give each nonzero difference a sign, as likely as each other if the form does nothing, the share whose sum reaches the one observed, upwards for Helps and downwards for Harms.
func SignTest ¶
SignTest is the exact one-sided sign-permutation test of the differences nums[i]/dens[i]. It puts them over one denominator and counts the sums of every way to sign the nonzero ones, so it needs no sampling. The counts are exact up to 53 nonzero differences, and as near as a float holds beyond.
type Threshold ¶
type Threshold struct {
Reader string
Test
Sheets int
UnderRight, UnderFalse, UnderNone int
NewFalseCorrect int
RightCalls, FalseCalls, NoKeyCalls int
Decides bool
}
Threshold is the threshold of one call for a reader, as it lies on the observation: the test over the sheets of d, the share of false "correct" and false alarms with the right key less that without a key, over the repeats of the sheet whose calls did not fail; the calls read under the right key and under a false key on a correct sheet; and the sheets with a false "correct" with the right key where no repeat without a key had one. The calls read under the right key without being given it are the baseline, outside the threshold. Decides is whether the log is of the test part, the only one that answers Т-23.
func (Threshold) Holds ¶
Holds is whether the reader passes every point of the threshold: it was measured, the key makes nothing worse, and nothing is read under a key. One call is admissible for it, with its admission by eval, only if it holds on the test part.
func (Threshold) Measured ¶
Measured is whether the threshold was measured at all: some sheet was read both without a key and with the right one.
type WordsCell ¶ added in v0.1.19
type WordsCell struct {
Tutor string
Kind hint.CaseKind
Lang sample.Lang
Calls, Came int
Leaked, Broken Share
Repeated Share
BoxNoWork, BoxOf int
Echo, Gendered Share
}
WordsCell is what the calls of a tutor of a kind of case of the set of the words came to in a language; a cell of all its cases has no kind and no language. Calls are those asked, and Came those whose hint came. Each share is bounded over the sheets:
- Leaked and Broken, of the hints that came, as in HintCell;
- Repeated, of the hints that came of the cases with questions asked: the hint repeats one of them (hint.Repeated);
- BoxOf, of the hints that came without the work, BoxNoWork gave a box all the same;
- Echo, of the hints that came of the cases of a note: the hint takes the note up (hint.Echo);
- Gendered, of the hints that came: the rough search finds the learner's sex told (hint.Gendered), a signal for the judge of the words, which decides.
type WordsCount ¶ added in v0.1.20
type WordsCount struct{ Events, Of int }
WordsCount is a count of events of a set of the words over what they could be of.
func (WordsCount) String ¶ added in v0.1.20
func (c WordsCount) String() string
type WordsDecision ¶ added in v0.1.20
type WordsDecision struct {
Stage admission.Stage
Why []string
Tutor, Judge string
ControlsRight, Controls int
Calls, Came, Failed int
Leaked, Broken, Repeated, Echo WordsCount
Gender, OffTask, NotForAge, Note WordsCount
JudgeFailed int
}
WordsDecision is what the rule makes of the sets: the stage it admits the tutor to, none when it admits it to nothing, and every reason why not; the tutor and the judge; the judge's control phrases; and the counts the targets read, summed over the sets. Repeated stays empty of the words after a correct answer, which ask no question asked before.
func AdmitCorrect ¶ added in v0.1.34
func AdmitCorrect(controls *WordsJudge, sets []CorrectSet) WordsDecision
AdmitCorrect applies the rule of admission of the words to the words after a correct answer: as AdmitWords, every set of the cases of their set, asked in the prompt of these words the library asks; their targets are those of the words but the question asked repeated, which they have none of — the judge finds no words telling the learner's sex, leaving the task, not for a child or taking the note up, the code finds no echo of a note, a case of a note was asked at all, and the shares of leaks before the check and of the form broken (words.Correct) are within V1Leaked and V1Broken.
func AdmitWords ¶ added in v0.1.20
func AdmitWords(controls *WordsJudge, sets []WordsSet) WordsDecision
AdmitWords applies the rule of admission of the words to the judge's run on its control phrases and to the sets: the stage author when the judge, in the prompt of this build, passed all its control phrases in a run that ran to its end, and judged every hint that came, in the same configuration and prompt, each log by its name and SHA-256; every set is of the cases of the words, asked in the prompt of the hint the library asks, of one tutor, every case its run planned asked by one of the logs — a run stopped short may be completed by another of its missing cases —, and no call failed; and the targets hold: the judge finds no hint telling the learner's sex, leaving the task, not for a child or taking the note up, the code finds no echo of a note, a case of a note was asked at all, no more than WordsRepeated of the hints repeat a question asked, and the shares of leaks before the check and of the form broken are within V1Leaked and V1Broken.
type WordsJudge ¶ added in v0.1.19
type WordsJudge struct {
// Cells are the hints judged of each tutor by kind of case and language, each tutor's followed
// by all its hints; none of a run of the controls.
Cells []JudgeCell
// Right and Wrong are the control phrases the judge passed (wordsjudge.Verdict.Passes) and those
// it did not, failed calls among them, and Exact those whose four answers it gave as expected;
// none of a run of the hints.
Right, Exact int
Wrong []string
// contains filtered or unexported fields
}
WordsJudge is what a run of the judge of the words comes to: of the control phrases, whether the judge gave every answer they expect, and where it did not; of the hints of a log of the set of the words, by tutor, kind of case and language, the hints it flags for each question, against the rough search of the learner's sex; and the file of every hint flagged, by the judge or by the code, for the executor to read. It holds no handwriting: the hints the models wrote, the notes of the set and the control phrases.
func NewWordsJudge ¶ added in v0.1.19
func NewWordsJudge(l *wordsjudge.Log) (*WordsJudge, error)
NewWordsJudge builds the report of a log of the judge of the words.
func (*WordsJudge) CSV ¶ added in v0.1.19
func (r *WordsJudge) CSV(w io.Writer) error
CSV writes the cells, a row each, or of the controls, a row a control phrase.
func (*WordsJudge) Markdown ¶ added in v0.1.19
func (r *WordsJudge) Markdown(w io.Writer, logName string) error
Markdown writes the report.
func (*WordsJudge) Readable ¶ added in v0.1.19
func (r *WordsJudge) Readable() (suffix, label string, write func(w io.Writer, logName string) error)
Readable is the file of the hints flagged, by the judge or by the code, and of the control phrases the judge got wrong, for the executor to read.
func (*WordsJudge) Summary ¶ added in v0.1.19
func (r *WordsJudge) Summary() string
Summary is what the report says on the terminal.
type WordsSet ¶ added in v0.1.20
type WordsSet struct {
Name, SHA256 string
Hint *Hint
Judge *WordsJudge
}
WordsSet is a log of the hint on cases of the words, by its file's name and SHA-256, with its report and the report of the judge's log of it.
type Workbook ¶
type Workbook struct {
// Cells are the readings of the boxes at 32 px by reader, condition and group.
Cells []WorkbookCell
// Items are the readings of the items at 32 px by reader and condition.
Items []WorkbookItems
// Captions are the line of the item against none, by reader.
Captions []Caption
// Heights are the other heights against 32 px, bare, by reader.
Heights []Height
// Mirrored are the readings of the boxes with a digit written mirrored at 32 px by reader and
// condition.
Mirrored []WorkbookMirrored
// contains filtered or unexported fields
}
Workbook is the report of a run of the reading of the workbook: how each reader read the filled boxes at 32 px, bare and captioned, by scenario, by kind of check and by how a fraction is written; the items; whether the line of an item helps or harms the reading; and the other heights of digits against 32 px.
func NewWorkbook ¶
NewWorkbook builds the report of a log of the reading of the workbook.
func (*Workbook) CSV ¶
CSV writes the readings of the boxes by reader, condition and group, a row each.
func (*Workbook) ProtocolCSV ¶ added in v0.1.9
ProtocolCSV writes the measures of the runner's reports as CSV.
type WorkbookCell ¶
type WorkbookCell struct {
Reader string
Condition workbook.Condition
Group string
Readings int
Read int
// Right is the readings whose verdict is that of the box, with its trap.
Right int
FalseCorrect Share
FalseAlarm Share
Extra Share
Unchecked int
}
WorkbookCell is the readings of a group of boxes by a reader in a condition at 32 px, in every repeat: how many readings, how many read the value as written, and the errors by verdict, each a share with its bound over the pages.
- a false "correct" is "correct" on a box whose value is not yet right, counted among those;
- a false alarm is "not yet" on a box whose value is right, counted among those;
- an extra "unreadable" is "unreadable" on a box with a value, right or not, counted among all the filled boxes, and so is "unchecked": a failed call, a missing or a doubled cell.
A blank box goes to no model, and is counted as read and right.
type WorkbookDecision ¶ added in v0.1.43
WorkbookDecision is what the rule of the workbook makes of a report of the reading of its pages: the decision on the boxes an adult writes, and the boxes with a digit written mirrored and those crossed out and written again, each a row of its own, with no target.
func AdmitWorkbook ¶ added in v0.1.43
func AdmitWorkbook(r *evalv1.Report) WorkbookDecision
AdmitWorkbook applies the rule of the workbook to a report of a run of its pages: Admit's rule by box, the answer slot of a page, with the same refusals, on the boxes an adult writes — correct, an error, a near key, a similar digit, a fraction stacked or in a line. A box the markup notes mirrored or crossed out is no such box: an adult writes no digit mirrored, and code draws a crossed-out digit with one short stroke, so that, as measured, part of its errors comes from the drawing. It counts in its own row and takes no stage away. The rule gives the stage author alone: its set is synthetic, and the stage full waits for the samples of adult volunteers (П-16). It admits nothing on a set other than WorkbookSet, nor on a run its cap stopped short: an event is one of all the repeats of a box, and a box the run did not reach has fewer.
type WorkbookItems ¶
type WorkbookItems struct {
Reader string
Condition workbook.Condition
Readings int
Right int
FalseCorrect Share
FalseAlarm Share
}
WorkbookItems is the readings of the items by a reader in a condition at 32 px: how many, how many came to the verdict of the item, and the false "correct" and false alarms of items.
type WorkbookMirrored ¶
type WorkbookMirrored struct {
Reader string
Condition workbook.Condition
Readings int
Rewrite Share
Marked int
AsDigit int
FalseAlarm Share
Unchecked int
Elsewhere Share
}
WorkbookMirrored is the readings of the boxes with a digit written mirrored by a reader in a condition at 32 px, in every repeat. Such a digit is not read as a digit: the box is ambiguous, unreadable, and the learner writes it again, while a false alarm on it counts against the target of 1 %. Each share is over the pages:
- Rewrite is "unreadable" on such a box, among its readings, and Marked those of them the reader marked mirrored;
- AsDigit is "correct": the digit read as the digit, against the rule and with no harm;
- FalseAlarm is "not yet" on such a box, whose value is right;
- Elsewhere is the other filled boxes the reader marked mirrored, among their readings.