Browse Source

use of global variable

Jérôme BUISINE 2 years ago
parent
commit
021313873e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      find_best_attributes.py

+ 1 - 0
find_best_attributes.py

@@ -148,6 +148,7 @@ def main():
 
     # init solution (`n` attributes)
     def init():
+        global number_of_values
         return BinarySolution([], number_of_values).random(validator)
 
     if not os.path.exists(cfg.output_backup_folder):