title: Scikitlearn LinearSVC Bad input shape
body: <p>I'm trying to use LinearSVC on my data! My code below:</p>
  
  <pre><code>from sklearn import svm
  
  clf2 = svm.LinearSVC()
  clf2.fit(X_train, y_train)
  </code></pre>
  
  <p>Results in the following error: </p>
  
  <pre><code>ValueError: bad input shape (2190, 9)
  </code></pre>
  
  <p>I've used one-hot encoding on my y value before splitting into y_test and y_train, and believe this to be the issue. I've tried implementing similar fixes (<a href="https://stackoverflow.com/questions/45768899/sklearn-bad-input-shape-valueerror">sklearn (Bad Input Shape) ValueError</a>) but still get errors when I try and re-shape.</p>
  
  <p>After one hot-encoding, I have a target variable (y) that has 9 classes, and there are a total of 2190 samples i'm running. It seems I need to reduce these 9 classes to 1 class in order to fit the SVM.</p>
  
  <p>Any suggestions would be greatly appreciated!</p>