浏览代码

Update CV parameter when training

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

+ 1 - 1
models.py

@@ -31,7 +31,7 @@ def _get_best_model(X_train, y_train):
 
     svc = svm.SVC(probability=True, class_weight='balanced')
     #clf = GridSearchCV(svc, param_grid, cv=5, verbose=1, scoring=my_accuracy_scorer, n_jobs=-1)
-    clf = GridSearchCV(svc, param_grid, cv=3, verbose=1, n_jobs=-1)
+    clf = GridSearchCV(svc, param_grid, cv=5, verbose=1, n_jobs=-1)
 
     clf.fit(X_train, y_train)