class_docstr: Accessor to ``sklearn.model_selection``.
class_docstr_tok: ["Accessor","to","``","sklearn.model_selection","``","."]
docstr: Generate ``ModelFrame`` using iterators for cross validation
  
  Parameters
  ----------
  cv : cross validation iterator
  reset_index : bool
      logical value whether to reset index, default False
  
  Returns
  -------
  generated : generator of ``ModelFrame``
docstr_tok: ["Generate","``","ModelFrame","``","using","iterators","for","cross","validation","Parameters","--","--","--","--","--","cv",":","cross","validation","iterator","reset_index",":","bool","logical","value","whether","to","reset","index",",","default","False","Returns","--","--","--","-","generated",":","generator","of","``","ModelFrame","``"]
code: def split(self, cv, reset_index=False):
      """
      Generate ``ModelFrame`` using iterators for cross validation
  
      Parameters
      ----------
      cv : cross validation iterator
      reset_index : bool
          logical value whether to reset index, default False
  
      Returns
      -------
      generated : generator of ``ModelFrame``
      """
      if not (isinstance(cv, self._module.BaseCrossValidator)):
          msg = "{0} is not a subclass of BaseCrossValidator"
          warnings.warn(msg.format(cv.__class__.__name__))
  
      if isinstance(cv, self._module.StratifiedShuffleSplit):
          gen = cv.split(self._df.data.values, self._df.target.values)
      else:
          gen = cv.split(self._df.index)
  
      for train_index, test_index in gen:
          train_df = self._df.iloc[train_index, :]
          test_df = self._df.iloc[test_index, :]
          if reset_index:
              train_df = train_df.reset_index(drop=True)
              test_df = test_df.reset_index(drop=True)
          yield train_df, test_df
  
file_path: pandas-ml/pandas_ml/skaccessors/model_selection.py
imports: import warnings
  import pandas
  from pandas_ml.core.accessor import _AccessorMethods
label_desc: Use image node_id 2 for calling the ModelSelectionMethods obj's underlying member method code with example usage: obj.split(cv, reset_index) without return types