Pārlūkot izejas kodu

update find_best_attributes algorithm params

Jérôme BUISINE 4 gadi atpakaļ
vecāks
revīzija
4ef2c1da7c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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))