title: I'm trying to create a image classifier machine learning model. while fitting my training data to pipeline, it's showing me this error
body: <p>the shape of X is</p>
  <pre><code>X = np.array(X).reshape(len(X),4096).astype(float) 
  X.shape
  </code></pre>
  <p><strong>(529, 4096)</strong></p>
  <p>the code</p>
  <pre><code>X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)
  
  pipe = Pipeline([('scaler', StandardScaler()), ('svc', SVC(kernel = 'rbf', C = 10))])
  
  pipe.fit(X_train, y_train)
  pipe.score(X_test, y_test)
  </code></pre>
  <p>error</p>
  <pre><code>ValueError: Found array with dim 3. StandardScaler expected &lt;= 2.
  </code></pre>