rnel.decide
¶
From an RNEL tuple to an action (technical note, Section 5.3).
Evidence gate (v0.1.1). Version 0.1.0 abstained when the ignorance component G was high and otherwise
answered with the side (T or F) that led by the margin. Because G falls whenever any report arrives,
a report supporting x could lower G below its threshold and unlock the answer "refuted": with the default
thresholds, 3 opposing reports -> abstain, but 3 opposing + 1 supporting -> "refuted". This violates the
AGM inclusion postulate (evidence for x must never produce belief in not-x). The gate is now applied to
the evidence on the side being asserted: to answer T (or F) the number of supporting (or opposing)
reports must exceed the count the old total-mass gate required, W (1/G_threshold - 1). With evidence on
one side only, the two gates coincide; with mixed evidence the new gate is monotone. Set
side_gate=False to reproduce v0.1.0.
ACTIONS = {'T': 'answer: supported', 'F': 'answer: refuted', 'C': 'present both positions and flag the dispute', 'U': 'wait or ask for more specific evidence', 'N': 'question the premise of the claim', 'G': 'retrieve more evidence or abstain'}
module-attribute
¶
Policy
dataclass
¶
Thresholds per component; set them on validation data with the costs of the application.
Source code in src/rnel/decide.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
C = 0.25
class-attribute
instance-attribute
¶
U = 0.3
class-attribute
instance-attribute
¶
N = 0.3
class-attribute
instance-attribute
¶
G = 0.4
class-attribute
instance-attribute
¶
margin = 0.15
class-attribute
instance-attribute
¶
W = DEFAULT_W
class-attribute
instance-attribute
¶
side_gate = True
class-attribute
instance-attribute
¶
required_side_evidence()
¶
Reports needed on the asserted side: the count at which the total-mass gate opened in v0.1.0.
Source code in src/rnel/decide.py
42 43 44 | |
decide(x)
¶
Source code in src/rnel/decide.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |