title: AttributeError: 'LinearSVC' object has no attribute 'classes_'
body: <p>This code is for detecting caracters and drawing rectangles then predicting the caracter but it give me the error bellow everytime !  </p>
  
  <pre><code>for rect in rects:
  # Draw the rectangles
  cv2.rectangle(im, (rect[0], rect[1]), (rect[0] + rect[2], rect[1] + rect[3]), (0, 255, 0), 3) 
  # Make the rectangular region around the digit
  leng = int(rect[3] * 1.6)
  pt1 = int(rect[1] + rect[3] // 2 - leng // 2)
  pt2 = int(rect[0] + rect[2] // 2 - leng // 2)
  roi = im_th[pt1:pt1+leng, pt2:pt2+leng]
  # Resize the image
  roi = cv2.resize(roi, (28, 28), interpolation=cv2.INTER_AREA)
  roi = cv2.dilate(roi, (3, 3))
  # Calculate the HOG features
  roi_hog_fd = hog(roi, orientations=9, pixels_per_cell=(14, 14), cells_per_block=(1, 1), visualise=False)
  ar=np.array([roi_hog_fd], 'float64')
  nbr = clf.predict(ar)
  </code></pre>
  
  <p></p>
  
  <pre><code>Traceback (most recent call last):
    File "performRecognition.py", line 43, in &lt;module&gt;
      nbr = clf.predict(np.array([roi_hog_fd], 'float64'))
    File "/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 341, in predict
      return self.classes_[indices]
  AttributeError: 'LinearSVC' object has no attribute 'classes_'
  </code></pre>