Skip to content

Commit

Permalink
add return_train_score argument
Browse files Browse the repository at this point in the history
  • Loading branch information
KangchengHou committed Nov 8, 2019
1 parent 59c3120 commit 4cd1e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.py
Expand Up @@ -22,7 +22,7 @@ def search(dataset, data_dir):
svc = SVC(kernel='precomputed', cache_size=16000, max_iter=5e5)
clf = GridSearchCV(svc, {'C' : C_list},
cv=zip(train_fold_idx, test_fold_idx),
n_jobs=80, verbose=0)
n_jobs=80, verbose=0, return_train_score=True)
clf.fit(gram, labels)
df = pd.DataFrame({'C': C_list,
'train': clf.cv_results_['mean_train_score'],
Expand Down

0 comments on commit 4cd1e14

Please sign in to comment.