Explorar el Código

Update validator for 2¹⁶ solution size

Jérôme BUISINE hace 2 años
padre
commit
f5b930e72f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      find_best_attributes_surrogate_svm.py

+ 1 - 1
find_best_attributes_surrogate_svm.py

@@ -54,7 +54,7 @@ simplefilter("ignore")
 def validator(solution):
 
     # at least 5 attributes and at most 16
-    if list(solution.data).count(1) < 5 or list(solution.data).count(1) > 16:
+    if list(solution.data).count(1) < 4 or list(solution.data).count(1) > 20:
         return False
 
     return True