@@ -0,0 +1,458 @@
+import tableprint as tp%0Aimport pandas as pd%0Afrom sklearn import svm, datasets%0Afrom sklearn.model_selection import GridSearchCV%0A%0Airis = datasets.load_iris()%0Aparameters = %7B'kernel':('linear', 'rbf'), 'C':%5B1, 2, 4%5D, 'gamma':%5B0.125, 0.25, 0.5 ,1, 2, 4%5D%7D%0Asvr = svm.SVC()%0Aclf = GridSearchCV(svr, parameters, n_jobs=-1)%0Aclf.fit(iris.data, iris.target)%0Acv_result = pd.DataFrame.from_dict(clf.cv_results_)%0Awith open('cv_result.csv','w') as f:%0A    cv_result.to_csv(f)%0A

Create svm_grid_search.py