class_docstr: A Multi-Layer Perceptron classifier for time series.
  
  This class mainly reshapes data so that it can be fed to `scikit-learn`'s
  ``MLPClassifier``.
  
  It accepts the exact same hyper-parameters as ``MLPClassifier``, check
  `scikit-learn docs <https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html>`__
  for a list of parameters and attributes.
  
  Notes
  -----
      This method requires a dataset of equal-sized time series.
  
  Examples
  --------
  >>> from tslearn.generators import random_walk_blobs
  >>> X, y = random_walk_blobs(n_ts_per_blob=30, sz=16, d=2, n_blobs=3,
  ...                          random_state=0)
  >>> mlp = TimeSeriesMLPClassifier(hidden_layer_sizes=(64, 64),
  ...                               random_state=0)
  >>> mlp.fit(X, y)  # doctest: +ELLIPSIS
  TimeSeriesMLPClassifier(...)
  >>> [c.shape for c in mlp.coefs_]
  [(32, 64), (64, 64), (64, 3)]
  >>> [c.shape for c in mlp.intercepts_]
  [(64,), (64,), (3,)]
class_docstr_tok: ["A","Multi-Layer","Perceptron","classifier","for","time","series",".","This","class","mainly","reshapes","data","so","that","it","can","be","fed","to","`","scikit-learn","`","'s","``","MLPClassifier","``",".","It","accepts","the","exact","same","hyper-parameters","as","``","MLPClassifier","``",",","check","`","scikit-learn","docs","<","https",":","\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.neural_network.MLPClassifier.html",">","`","__","for","a","list","of","parameters","and","attributes",".","Notes","--","--","-","This","method","requires","a","dataset","of","equal-sized","time","series",".","Examples","--","--","--","--",">",">",">","from","tslearn.generators","import","random_walk_blobs",">",">",">","X",",","y","=","random_walk_blobs","(","n_ts_per_blob=30",",","sz=16",",","d=2",",","n_blobs=3",",","...","random_state=0",")",">",">",">","mlp","=","TimeSeriesMLPClassifier","(","hidden_layer_sizes=","(","64",",","64",")",",","...","random_state=0",")",">",">",">","mlp.fit","(","X",",","y",")","#","doctest",":","+ELLIPSIS","TimeSeriesMLPClassifier","(","...",")",">",">",">","[","c.shape","for","c","in","mlp.coefs_","]","[","(","32",",","64",")",",","(","64",",","64",")",",","(","64",",","3",")","]",">",">",">","[","c.shape","for","c","in","mlp.intercepts_","]","[","(","64",",",")",",","(","64",",",")",",","(","3",",",")","]"]
docstr: Predict the class labels for the provided data
  
  Parameters
  ----------
  X : array-like, shape (n_ts, sz, d)
      Test samples.
  
  Returns
  -------
  array, shape = (n_ts, )
      Array of predicted class labels
docstr_tok: ["Predict","the","class","labels","for","the","provided","data","Parameters","--","--","--","--","--","X",":","array-like",",","shape","(","n_ts",",","sz",",","d",")","Test","samples",".","Returns","--","--","--","-","array",",","shape","=","(","n_ts",",",")","Array","of","predicted","class","labels"]
code: def predict(self, X):
      """Predict the class labels for the provided data
  
      Parameters
      ----------
      X : array-like, shape (n_ts, sz, d)
          Test samples.
  
      Returns
      -------
      array, shape = (n_ts, )
          Array of predicted class labels
      """
      X_ = check_array(X, force_all_finite=True, allow_nd=True)
      X_ = X_.reshape((X_.shape[0], -1))
      return super(TimeSeriesMLPClassifier, self).predict(X_)
  
file_path: tslearn/tslearn/neural_network/neural_network.py
imports: from sklearn.neural_network import MLPClassifier, MLPRegressor
  from sklearn.utils import check_array
  from ..bases import TimeSeriesBaseEstimator
label_desc: Use image node_id 2 for calling the TimeSeriesMLPClassifier obj's underlying member method code with example usage: obj.predict(X) and returns: super