title: Bad input shape error on SVM training using scikit
body: <p>I m a little new to scikit and ML. I m trying to train an SVM classifier for one vs all classification. I m using the following code.</p>
  
  <pre><code>g=list()
  for i in range(0,120):
      g.append(1)
  for i in range(120,240):
      g.append(2)
  
  u=set(g)
  numclasses=len(u)
  
  lin_clf = svm.LinearSVC()
  lin_clf.fit(features,u)
  </code></pre>
  
  <p>Features is a 72900*120 array. I m getting features from a different python code and calling that here. It throws the following warning and error.</p>
  
  <pre><code>/usr/lib/python2.7/dist-packages/scipy/misc/pilutil.py:279: 
  DeprecationWarning: fromstring() is deprecated. Please call frombytes() instead.
  image = Image.fromstring(mode, shape, strdata)
  </code></pre>
  
  <p>error</p>
  
  <pre><code>ValueError: bad input shape ()
  </code></pre>
  
  <p>Please comment if you need the code for feature extraction. Thank you in advance.</p>