class_docstr: Transform n-dimensional array into 2D array of n_samples by n_features.
  
  This class reshapes an n-dimensional array into an n_samples * n_features
  array, usable by the estimators and transformers of scikit-learn.
  
  Attributes
  ----------
  features_shape_ : tuple
       Stores the original shape of data.
  
  Examples
  --------
  clf = make_pipeline(SpatialFilter(), _XdawnTransformer(), Vectorizer(),
                      LogisticRegression())
docstr: Convert given array into two dimensions.
  
  Parameters
  ----------
  X : array-like
      The data to fit. Can be, for example a list, or an array of at
      least 2d. The first dimension must be of length n_samples, where
      samples are the independent samples used by the estimator
      (e.g. n_epochs for epoched data).
  
  Returns
  -------
  X : array, shape (n_samples, n_features)
      The transformed data.
docstr_tok: ["Convert","given","array","into","two","dimensions",".","Parameters","--","--","--","--","--","X",":","array-like","The","data","to","fit",".","Can","be",",","for","example","a","list",",","or","an","array","of","at","least","2d",".","The","first","dimension","must","be","of","length","n_samples",",","where","samples","are","the","independent","samples","used","by","the","estimator","(","e.g",".","n_epochs","for","epoched","data",")",".","Returns","--","--","--","-","X",":","array",",","shape","(","n_samples",",","n_features",")","The","transformed","data","."]
code: def transform(self, X):
      """Convert given array into two dimensions.
  
      Parameters
      ----------
      X : array-like
          The data to fit. Can be, for example a list, or an array of at
          least 2d. The first dimension must be of length n_samples, where
          samples are the independent samples used by the estimator
          (e.g. n_epochs for epoched data).
  
      Returns
      -------
      X : array, shape (n_samples, n_features)
          The transformed data.
      """
      X = np.asarray(X)
      if X.shape[1:] != self.features_shape_:
          raise ValueError(
              "Shape of X used in fit and transform must be " "same"
          )
      return X.reshape(len(X), -1)
  
imports: import numpy
  from .._fiff.pick import _pick_data_channels, _picks_by_type, _picks_to_idx, pick_info, pick_types
  from ..cov import _check_scalings_user
  from ..filter import filter_data
  from ..time_frequency import psd_array_multitaper
  from ..utils import _check_option, _validate_type, fill_doc, verbose
  from .base import BaseEstimator
  from .mixin import TransformerMixin
label_desc: Use image node_id 2 for calling the Vectorizer obj's underlying member method code with example usage: obj.transform(X) and returns: X