Jérôme BUISINE 4 лет назад
Родитель
Сommit
176fa49745
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      find_best_attributes_surrogate.py

+ 1 - 2
find_best_attributes_surrogate.py

@@ -141,8 +141,7 @@ def main():
 
     # init solution (`n` attributes)
     def init():
-        return BinarySolution([], p_length
-        ).random(validator)
+        return BinarySolution.random(p_length, validator)
 
 
     class SurrogateEvaluator(Evaluator):