Browse Source

update initialiser

Jérôme BUISINE 11 months ago
parent
commit
176fa49745
1 changed files with 1 additions and 2 deletions
  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):