parascape.label_pairing
Which labels may stand beside which, so a joint model can be tested (instruction 73, rung 5).
Rung 5 of the strategy ladder is a model that learns several questions at once. It was recorded as untested for
one reason, in borrowed_models.UNTESTED: the harness excludes every column of a target's own information
category, and an auxiliary label of that category would bring the excluded evidence back in by another door.
Nobody had written down which labels may stand beside which, so the strategy could not be graded honestly.
This module is that record, and it is derived rather than asserted. Two labels may be learned together when:
- their information categories do not intersect -- a
placetarget may not be helped by anotherplacelabel, because the second label is the first question in different words; - neither label's dataset family is on the other's forbidden list -- the hand-written
evidence_forbiddenof a question names the families that would restate its answer, and a label drawn from one of them is that answer; - they are about the same organism, because a joint model shares one row space -- and the organism is read from the table the label comes from, since the registry records no organism field.
Everything else is allowed, and the pair carries the reason it was allowed. A pair that fails says which rule it failed, so the record is reviewable rather than a verdict.
Which space a question's label lives in, read from the table its label comes from.
The registry records no organism field, so the table named in label_source is the only statement of it:
pf_nodes.parquet is Plasmodium, anything else Toxoplasma. Derived rather than assumed, because defaulting
every question to one organism would let two species pair silently.
(may it, why) for one ordered pair of questions.
target is the question being answered and auxiliary the label offered alongside it. The order matters:
a question forbids families that would restate ITS answer, so both directions are checked and either
refusal is enough.
Every ordered pair of registry questions, with whether they may be learned together and why.
One row per (target, auxiliary). allowed is the answer and reason is always filled, so a refusal can be
read and argued with rather than guessed at.
The question ids that may stand beside this one, best used as the auxiliary tasks of a joint model.