Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

tests: retarget the ONNXAgent._decode_answers citation after #1271

Nandakishorf6b7ed6c94ea
diff --git a/tests/test_confidence.py b/tests/test_confidence.py
index 3ee38351..f594c614 100644
--- a/tests/test_confidence.py
+++ b/tests/test_confidence.py
@@ -434,7 +434,7 @@ check("export/laya re-exports the same tuple", laya.GATE_STATES, _confidence.GAT
# `docs/structured.md` and `docs/questions-and-answers.md` each opened their confidence section with
# "`confidence` is normalized entropy". Neither agent writes that for every type:
# `Agent._decode_answers` (`laya/agent.py:1369-1398`) and `ONNXAgent._decode_answers`
-# (`laya/onnx_agent.py:682-727`) put `confidence_from_probs(p, k)` = `1 - H(p) / log(k)` in the
+# (`laya/onnx_agent.py:713-783`) put `confidence_from_probs(p, k)` = `1 - H(p) / log(k)` in the
# `choice` and `score` answers and `max(p_true, 1 - p_true)` in the `noul` one. Each page printed a
# `noul` in the very block its sentence introduces, so the sentence was falsifiable from the page
# alone: the Q&A page's sample answer is `{"type": "noul", "noul": 0.8727, "confidence": 0.8727}`,