class_docstr: Abstract base class for early time series classifiers.
  
  The base classifier specifies the methods and method signatures that all
  early classifiers have to implement. Attributes with an underscore suffix are set in
  the method fit.
  
  Parameters
  ----------
  classes_            : ndarray of class labels, possibly strings
  n_classes_          : integer, number of classes (length of classes_)
  fit_time_           : integer, time (in milliseconds) for fit to run.
  _class_dictionary   : dictionary mapping classes_ onto integers 0...n_classes_-1.
  _threads_to_use     : number of threads to use in fit as determined by n_jobs.
  state_info          : An array containing the state info for each decision in X.
class_docstr_tok: ["Abstract","base","class","for","early","time","series","classifiers",".","The","base","classifier","specifies","the","methods","and","method","signatures","that","all","early","classifiers","have","to","implement",".","Attributes","with","an","underscore","suffix","are","set","in","the","method","fit",".","Parameters","--","--","--","--","--","classes_",":","ndarray","of","class","labels",",","possibly","strings","n_classes_",":","integer",",","number","of","classes","(","length","of","classes_",")","fit_time_",":","integer",",","time","(","in","milliseconds",")","for","fit","to","run",".","_class_dictionary",":","dictionary","mapping","classes_","onto","integers","0","...","n_classes_-1",".","_threads_to_use",":","number","of","threads","to","use","in","fit","as","determined","by","n_jobs",".","state_info",":","An","array","containing","the","state","info","for","each","decision","in","X","."]
docstr: Check and coerce X/y for fit/transform functions.
  
  Parameters
  ----------
  y : pd.DataFrame, pd.Series or np.ndarray
  return_to_mtype : bool
      whether to return the mtype of y output
  
  Returns
  -------
  y_inner : object of sktime compatible time series type
      can be Series, Panel, Hierarchical
  y_metadata : dict
      metadata of y, returned by check_is_scitype
  y_mtype : str, only returned if return_to_mtype=True
      mtype of y_inner, after convert
docstr_tok: ["Check","and","coerce","X\/y","for","fit\/transform","functions",".","Parameters","--","--","--","--","--","y",":","pd.DataFrame",",","pd.Series","or","np.ndarray","return_to_mtype",":","bool","whether","to","return","the","mtype","of","y","output","Returns","--","--","--","-","y_inner",":","object","of","sktime","compatible","time","series","type","can","be","Series",",","Panel",",","Hierarchical","y_metadata",":","dict","metadata","of","y",",","returned","by","check_is_scitype","y_mtype",":","str",",","only","returned","if","return_to_mtype=True","mtype","of","y_inner",",","after","convert"]
code: def _check_y(self, y=None, return_to_mtype=False):
      """Check and coerce X/y for fit/transform functions.
  
      Parameters
      ----------
      y : pd.DataFrame, pd.Series or np.ndarray
      return_to_mtype : bool
          whether to return the mtype of y output
  
      Returns
      -------
      y_inner : object of sktime compatible time series type
          can be Series, Panel, Hierarchical
      y_metadata : dict
          metadata of y, returned by check_is_scitype
      y_mtype : str, only returned if return_to_mtype=True
          mtype of y_inner, after convert
      """
      _check_y = BaseClassifier._check_y
      return _check_y(self, y, return_to_mtype=return_to_mtype)
  
imports: from abc import ABC, abstractmethod
  from typing import Tuple
  import numpy
  from sktime.base import BaseEstimator
  from sktime.classification import BaseClassifier
label_desc: Use image node_id 23 for calling the BaseEarlyClassifier obj's underlying member method code with example usage: obj._check_y(y, return_to_mtype) and returns: _check_y