research(jev-intent): fix2 把来源 B 现行与高置信错误补进报告
离线从 cache 聚合,不重跑模型。无焦点层 Flash 69.7% 低于 Jev 78.8%。采集层相对门槛标不可判。
This commit is contained in:
@@ -132,6 +132,16 @@ class JevIntentCorpusTests(unittest.TestCase):
|
||||
for name in names:
|
||||
self.assertNotIn(name, message)
|
||||
|
||||
def test_report_json_includes_current_source_b(self) -> None:
|
||||
path = ROOT / "docs" / "research" / "jev_intent_2026_09_19.json"
|
||||
if not path.is_file():
|
||||
self.skipTest("report json not generated yet")
|
||||
payload = json.loads(path.read_text(encoding="utf-8"))
|
||||
current = (payload.get("metrics") or {}).get("current_source_b")
|
||||
self.assertIsNotNone(current)
|
||||
self.assertEqual(current["n"], payload["meta"]["source_b_n"])
|
||||
self.assertIn("source_b_none_confusion", payload["metrics"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user