diff options
author | Niclas Dobbertin <niclas.dobbertin@mailbox.org> | 2024-09-01 17:29:19 +0200 |
---|---|---|
committer | Niclas Dobbertin <niclas.dobbertin@mailbox.org> | 2024-09-01 17:29:19 +0200 |
commit | 7c1d45b574de33dafcd93b251fc089acff313292 (patch) | |
tree | 9817f1faab381cd71c3c7ad26086851577ae6fde /modeling/productions_math.py | |
parent | 60df194c8b72c9d47d1bc490b4c4c296ac234e8e (diff) |
fix retrieval checks
Diffstat (limited to 'modeling/productions_math.py')
-rw-r--r-- | modeling/productions_math.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modeling/productions_math.py b/modeling/productions_math.py index a3f6b02..07609bf 100644 --- a/modeling/productions_math.py +++ b/modeling/productions_math.py @@ -33,9 +33,9 @@ def add_proc(goal, proc): def start(): - condition = "random" - training_N = 5 - test_N = 5 + condition = "fixed" + training_N = 2 + test_N = 2 stimuli = model_env.Stimuli(condition, training_N=training_N, test_N=test_N) @@ -52,6 +52,10 @@ def start(): # op, arg1, arg2 = wait_input() Model, DM, goal, imaginal, env = init() # Model.model_parameters["subsymbolic"] = True + # Model.model_parameters["partial_matching"] = True + Model.model_parameters["activation_trace"] = True + Model.model_parameters["utility_alpha"] = 0.5 + Model.model_parameters["utility_noise"] = 0.5 Model.model_parameters["production_compilation"] = True Model.model_parameters["utility_learning"] = True # add_goal(goal, op, arg1, arg2) @@ -67,6 +71,9 @@ def start(): motor_prods = prod_motor.procedures(Model) visual_prods = prod_vis.procedures(Model) + for p in Model.productions: + Model.productions[p].__setitem__("utility", 1) + print("goal: ", goal) # print("imaginal: ", imaginal) sim = Model.simulation( @@ -85,6 +92,7 @@ def start(): if j > training_N: phase = "test" sim.step() + print(goal) if sim.current_event.time >= 900: print(sim.current_event) break |