diff options
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 |