Parcourir la source

update find_best_attributes algorithm params

Jérôme BUISINE il y a 3 ans
Parent
commit
4ef2c1da7c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      find_best_attributes.py

+ 2 - 2
find_best_attributes.py

@@ -160,9 +160,9 @@ def main():
 
     # prepare optimization algorithm
     operators = [SimpleBinaryMutation(), SimpleMutation(), SimpleCrossover(), RandomSplitCrossover()]
-    policy = UCBPolicy(updators)
+    policy = UCBPolicy(operators)
 
-    algo = ILS(init, evaluate, updators, policy, validator, True)
+    algo = ILS(init, evaluate, operators, policy, validator, True)
     algo.addCallback(BasicCheckpoint(_every=1, _filepath=backup_file_path))
     algo.addCallback(UCBCheckpoint(_every=1, _filepath=ucb_backup_file_path))