title: 'LinearSVC' object has no attribute 'classes_'
body: <p>I have several samples of images and I would like to predict if those images contain text/characters. </p>
  
  <p>I get an error when I try running my code at this step :</p>
  
  <pre><code>model = cPickle.load(f)
  is_text = model.predict(image_samples)
  </code></pre>
  
  <p>image_samples are my samples and model looks like this : </p>
  
  <pre><code>Pipeline(steps=[
      ('hog', HOGFeatures(cells_per_block=(2, 2), orientations=10,
                          pixels_per_cell=(5, 5), size=(20, 20))),
      ('clf', LinearSVC(C=2.0, class_weight=None, dual=True,
                        fit_intercept=True,
                        intercept_scaling=1, loss='l2', max_iter=None,
                        multi_class='ovr', penalty='l2',
                        random_state=None, tol=0.0001, verbose=0))
  ])
  </code></pre>
  
  <p>The error message I get is :</p>
  
  <pre><code>File "/home/parallels/Desktop/Python/ImageTextRecognition-master/userimageski.py", line 104, in select_text_among_candidates
  is_text = model.predict(self.candidates['flattened'])
  
  File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/metaestimators.py", line 37, in &lt;lambda&gt;
  out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs)
  
  File "/usr/local/lib/python2.7/dist-packages/sklearn/pipeline.py", line 180, in predict
  return self.steps[-1][-1].predict(Xt)
  
  File "/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 228, in predict
  return self.classes_[indices]
  AttributeError: 'LinearSVC' object has no attribute 'classes_'
  </code></pre>
  
  <p>Could anyone help me ?
  Thank you very much</p>