Bases: BaseModel
How far a rule got toward firing, pattern by pattern.
The diagnostic for a rule that should have fired and did not. All three
counts at zero means nothing matched any condition. matches above zero
with activations at zero means some conditions are satisfied and the
rest are not: the rule is waiting on a fact. Read it through
:meth:Engine.rule_matches.
Source code in src/fathom/models.py
| class RuleMatches(BaseModel):
"""How far a rule got toward firing, pattern by pattern.
The diagnostic for a rule that should have fired and did not. All three
counts at zero means nothing matched any condition. ``matches`` above zero
with ``activations`` at zero means some conditions are satisfied and the
rest are not: the rule is waiting on a fact. Read it through
:meth:`Engine.rule_matches`.
"""
#: Module-qualified rule name, as CLIPS reports it.
rule: str
#: Facts matching the rule's individual patterns, summed over the patterns.
matches: int
#: Partial matches held in the join network. CLIPS counts a join, not a
#: lone satisfied pattern, so a two-pattern rule with one pattern matched
#: reports zero here and one under ``matches``.
partial_matches: int
#: Complete matches, each one an entry on the agenda.
activations: int
|