title: ValueError: Found input variables with inconsistent numbers of samples: [676, 540]
body: <pre><code>X_train, X_test, y_train, y_test = train_test_split(features, df['Label'], test_size=0.2, random_state=111)
  print (X_train.shape) # (540, 4196)
  print (X_test.shape) # (136, 4196)
  print (y_train.shape) # (540,)
  print (y_test.shape) # (136,)
  </code></pre>
  <p>When fitting, it gives error:</p>
  <pre><code>from sklearn.svm import SVC
  classifier = SVC(random_state = 0)
  classifier.fit(features,y_train)
  y_pred = classifier.predict(features)
  </code></pre>
  <p>Error:</p>
  <pre><code>ValueError: Found input variables with inconsistent numbers of samples: [676, 540]
  </code></pre>
  <p>I tried <a href="https://stackoverflow.com/questions/65649990/valueerror-found-input-variables-with-inconsistent-numbers-of-samples-151-38">this</a>.</p>