diff options
author | Niclas Dobbertin <niclas.dobbertin@mailbox.org> | 2024-09-20 11:08:29 +0200 |
---|---|---|
committer | Niclas Dobbertin <niclas.dobbertin@mailbox.org> | 2024-09-20 11:08:29 +0200 |
commit | 687a14059c0bd1a8b8c10cbdf82155ba57f6c31a (patch) | |
tree | d965e764a7f1f3b41dbee2c9737fce119a25f193 /modeling/productions_math.py | |
parent | bf2f74d43a02ef01c794292bf10fa5e5652447f4 (diff) |
reward for done retrieval to prevent loop wip
Diffstat (limited to 'modeling/productions_math.py')
-rw-r--r-- | modeling/productions_math.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modeling/productions_math.py b/modeling/productions_math.py index 326b9c4..542f2e3 100644 --- a/modeling/productions_math.py +++ b/modeling/productions_math.py @@ -107,9 +107,9 @@ def start(): userinput[phase][stimuli.current_stimulus_id][str(i)].append( sim.current_event.action.split(":")[1].strip() ) - if "RULE FIRED:" in sim.current_event.action and " and " in sim.current_event.action: + if "RULE FIRED:" in sim.current_event.action and "number_expand_done and continue_with_next_op" in sim.current_event.action: print("FIRED COMPILED RULE!!!!") - print(Model.productions[sim.current_event.action[12:]]) + # print(Model.productions[sim.current_event.action[12:]]) # break if sim.current_event.action == "NO RULE FOUND": print(goal) @@ -161,8 +161,8 @@ def start(): # print("#######used prods########") # print(sim.ordered_rulenames) - pprint(sim._Simulation__pr.rules) - pprint(sim._Simulation__pr.ordered_rulenames) + # pprint(sim._Simulation__pr.rules) + # pprint(sim._Simulation__pr.ordered_rulenames) if __name__ == "__main__": start() |