feat(spatial): 观测声明自己的盲区(按类别计数,不含身份)
cond.p1 从 0.602 到 1.000 证实了这一点:缺的不是容量,是"我看不到什么"这个输入。
剩下 area.sup2h / dof.c6h 弃权率仍为 0,是同一个病在另两个域——生成器把底座/配合
藏起来了,却不让观测声明。
schema 增加 Observation.hidden:{entity: {kind: 数量}, edge: {kind: 数量}},
由 _observe 从"全状态减可见"自动导出,所以新增遮挡物不可能忘记声明。
只记数量不记身份:"少了一条接触"是能据以行动的事实,"少的是 kPT"是泄题。
scene 特征扩到 17 维:隐藏层指示、未见面的数量、各实体类别缺失数、各边类别缺失数、
是否有任何缺失、场景规模。
This commit is contained in:
1 parent
08153b987d
commit
515bee2f01
4 files changed
+37
-7
No files matched your search
+11
-1
@@ -84,7 +84,15 @@ class Edge:
|
||||
|
||||
@dataclass
|
||||
class Observation:
|
||||
"""What the model sees. Only visible items are stored here."""
|
||||
"""What the model sees. Only visible items are stored here.
|
||||
|
||||
``hidden`` is the one thing here that is not visible, and it is deliberate:
|
||||
it counts what the full state contains that this view does not. Without it
|
||||
"nothing is there" and "it is behind the part" are the same input, and the
|
||||
two have different answers -- no reasoning can recover a distinction that
|
||||
the input never carried. It records counts by kind, never identities, so it
|
||||
says *that* a support is missing, not *which* one.
|
||||
"""
|
||||
|
||||
entities: list = field(default_factory=list)
|
||||
edges: list = field(default_factory=list)
|
||||
@@ -92,6 +100,7 @@ class Observation:
|
||||
units: dict = field(default_factory=lambda: {"length": "mm", "per_unit": 1})
|
||||
hidden_layers: list = field(default_factory=list)
|
||||
hidden_faces: list = field(default_factory=list)
|
||||
hidden: dict = field(default_factory=lambda: {"entity": {}, "edge": {}})
|
||||
|
||||
def entity_ids(self) -> set:
|
||||
return {e.eid for e in self.entities}
|
||||
@@ -104,6 +113,7 @@ class Observation:
|
||||
"units": dict(self.units),
|
||||
"hidden_layers": sorted(self.hidden_layers),
|
||||
"hidden_faces": sorted(self.hidden_faces),
|
||||
"hidden": {k: dict(sorted(v.items())) for k, v in sorted(self.hidden.items())},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user