浏览代码

remove of warning from sklearn

Jérôme BUISINE 3 年之前
父节点
当前提交
a201cba7b5
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      find_best_attributes_surrogate.py

+ 1 - 4
find_best_attributes_surrogate.py

@@ -48,10 +48,7 @@ from optimization.callbacks.SurrogateMonoCheckpoint import SurrogateMonoCheckpoi
 models_list         = cfg.models_names_list
 
 from warnings import simplefilter
-from sklearn.exceptions import ConvergenceWarning, DeprecationWarning, VisibleDeprecationWarning
-simplefilter("ignore", category=ConvergenceWarning)
-simplefilter("ignore", category=DeprecationWarning)
-simplefilter("ignore", category=VisibleDeprecationWarning)
+simplefilter("ignore")
 
 # default validator
 def validator(solution):