From ed52f56d1097000e5e37010d88bf2a4cde643811 Mon Sep 17 00:00:00 2001 From: "Dobbertin, Niclas" Date: Tue, 19 Mar 2024 12:09:41 +0100 Subject: update --- modeling/productions_math.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modeling/productions_math.py b/modeling/productions_math.py index 4088546..def6fe2 100644 --- a/modeling/productions_math.py +++ b/modeling/productions_math.py @@ -30,7 +30,7 @@ actr.chunktype( ), ) -goal.add(actr.makechunk("", "math_goal", op="greater", task="calc")) +goal.add(actr.makechunk("", "math_goal", op="add", task="calc")) imaginal.add( actr.makechunk( "", @@ -183,6 +183,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -200,13 +201,14 @@ def addition(): arg2 =num2 """, ) - print(start_add) + print("start_add: ", start_add) add_ones = Model.productionstring( name="add_ones", string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -219,8 +221,6 @@ def addition(): arg2 =num2 result =result ==> - =goal> - isa math_goal =imaginal> isa math_op ones_ans =result @@ -239,6 +239,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -253,8 +254,6 @@ def addition(): result =ones arg2 =remainder ==> - =goal> - isa math_goal =imaginal> isa math_op op add @@ -274,6 +273,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -284,8 +284,6 @@ def addition(): ?retrieval> buffer failure ==> - =goal> - isa math_goal =imaginal> isa math_op carry None @@ -302,6 +300,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -323,6 +322,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add -- cgit v1.2.3