浏览代码

Fix pow criterion

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

+ 1 - 1
find_best_attributes_surrogate_svm.py

@@ -194,7 +194,7 @@ def main():
             print('----')
             print("Real evaluation took: {}, score found: {}".format(divmod(diff.days * 86400 + diff.seconds, 60), test_roc_auc))
 
-            return test_roc_auc * (1 - math.pow(test_roc_auc - train_roc_auc), 2)
+            return test_roc_auc * (1 - math.pow(test_roc_auc - train_roc_auc, 2))
 
 
     # build all output folder and files based on `output` name