Repository navigation
Commit b536e6d
authored
Fix all_events to respect variables already in the evidence (#1274)
In all_events (probability4e.py), if a variable X is already fixed in the evidence e, don't enumerate over all its values (which produced events inconsistent with the evidence). Yield the event as-is for such variables. Verified: events no longer violate the evidence, and test_probability4e still passes (22).1 parent e88a514 commit b536e6d
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | | - | |
596 | | - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
597 | 600 | | |
598 | 601 | | |
599 | 602 | | |
| |||
0 commit comments