Release v6.0.52: fix same_house(self) bug globally in yoga_engine\n\n- Removed 'if a==b: return False' guard from same_house() function\n- A planet is trivially in the same house as itself (lord(X) == planet case)\n- Prior workaround in mathibhramana variation_2 now redundant but harmless\n- FN: 79->74 (-5). Recall: 92.47%->92.95% (+0.48%). F1: 93.54%->93.80% (+0.26%)\n- kapata: 8->5 FN (3 auto-fixed from global fix)\n- Other rules with same_house(lord, planet) patterns also benefit

This commit is contained in:
732642856
2026-06-07 09:07:33 +08:00
parent 62686edfa6
commit bc07add030
+1 -3
View File
@@ -1041,9 +1041,7 @@ class YogaEngine:
# v6.0.32: 修复 custom 规则中常用的缺失辅助函数
def same_house(a, b):
"""两颗行星是否同宫"""
if a == b:
return False
"""两颗行星是否同宫(允许自比较:同星恒为 True"""
ha = ctx.house_of(a)
hb = ctx.house_of(b)
return ha is not None and ha == hb