title: 'SVC' object has no attribute 'best_params_'
body: <pre><code>def ParamSelection(X, Y, nfolds): 
      Cs = [0.0001, 0.001, 0.01, 0.1, 1, 10, 100]
      degrees = [1, 2, 3, 4, 5]
      param_grid = {'C': Cs, 'degree' : degrees}
      grid_search = GridSearchCV(svm.SVC(kernel = 'poly'), param_grid, cv = nfolds)
      grid_search = svm.SVC(gamma='scale')
      grid_search.fit(X, Y)
      grid_search.best_params_
      return grid_search.best_params_
  ParamSelection(trainX, trainY, 10)
  </code></pre>
  
  <blockquote>
    <p>AttributeError: 'SVC' object has no attribute 'best_params_'</p>
  </blockquote>
  
  <p>I'm getting the above error. What should I do? Can you help?</p>