title: SVM: Scoring test data
body: <p>I am using <code>scikit-learn</code> and want to evaluate the <code>predicition</code> of a <code>SVM</code> on a testset.</p>
  
  <pre><code>from sklearn.svm import SVC
  import numpy
  
  
  dataset = numpy.loadtxt("training.txt", delimiter="\t")
  X = dataset[:,0:15]
  y = dataset[:,15:16]
  y = y.ravel()
  
  test_dataset_1 = numpy.loadtxt("test_14-15.txt", delimiter="\t")
  X_test_1 = test_dataset_1[:,0:15]
  y_test_1 = dataset[:,15:16]
  y_test_1 = y_test_1.ravel()
  
  model = SVC(kernel='linear', C=75) 
  
  model.fit(X, y)
  
  score_1 = model.score(X_test_1, y_test_1)
  </code></pre>
  
  <p>I get the ValueError:</p>
  
  <blockquote>
    <p>Found Input variables with inconsistent numbers of samples: [1682, 192]</p>
  </blockquote>
  
  <p>My Training set has 1682 samples and my test set 192. But I just use the test set in the score-method. Why do I get this error?</p>