class_docstr: Splitter that replicates loc indices from another splitter.
  
  Takes a splitter ``cv`` and a time series ``y_template``.
  Splits ``y`` in ``split`` and ``split_loc`` such that ``loc`` indices of splits
  are identical to loc indices of ``cv`` applied to ``y_template``.
  
  Parameters
  ----------
  cv : BaseSplitter
      splitter for which to replicate splits by ``loc`` index
  y_template : time series container of ``Series`` scitype, optional
      template used in ``cv`` to determine ``loc`` indices
      if None, ``y_template=y`` will be used in methods
  
  Examples
  --------
  >>> from sktime.datasets import load_airline
  >>> from sktime.split import (
  ...    ExpandingWindowSplitter,
  ...    SameLocSplitter,
  ... )
  
  >>> y = load_airline()
  >>> y_template = y[:60]
  >>> cv_tpl = ExpandingWindowSplitter(fh=[2, 4], initial_window=24, step_length=12)
  
  >>> splitter = SameLocSplitter(cv_tpl, y_template)
  
  these two are the same:
  
  >>> list(cv_tpl.split(y_template)) # doctest: +SKIP
  >>> list(splitter.split(y)) # doctest: +SKIP
class_docstr_tok: ["Splitter","that","replicates","loc","indices","from","another","splitter",".","Takes","a","splitter","``","cv","``","and","a","time","series","``","y_template","``",".","Splits","``","y","``","in","``","split","``","and","``","split_loc","``","such","that","``","loc","``","indices","of","splits","are","identical","to","loc","indices","of","``","cv","``","applied","to","``","y_template","``",".","Parameters","--","--","--","--","--","cv",":","BaseSplitter","splitter","for","which","to","replicate","splits","by","``","loc","``","index","y_template",":","time","series","container","of","``","Series","``","scitype",",","optional","template","used","in","``","cv","``","to","determine","``","loc","``","indices","if","None",",","``","y_template=y","``","will","be","used","in","methods","Examples","--","--","--","--",">",">",">","from","sktime.datasets","import","load_airline",">",">",">","from","sktime.split","import","(","...","ExpandingWindowSplitter",",","...","SameLocSplitter",",","...",")",">",">",">","y","=","load_airline","(",")",">",">",">","y_template","=","y","[",":60","]",">",">",">","cv_tpl","=","ExpandingWindowSplitter","(","fh=","[","2",",","4","]",",","initial_window=24",",","step_length=12",")",">",">",">","splitter","=","SameLocSplitter","(","cv_tpl",",","y_template",")","these","two","are","the","same",":",">",">",">","list","(","cv_tpl.split","(","y_template",")",")","#","doctest",":","+SKIP",">",">",">","list","(","splitter.split","(","y",")",")","#","doctest",":","+SKIP"]
docstr: Return testing parameter settings for the splitter.
  
  Parameters
  ----------
  parameter_set : str, default="default"
      Name of the set of test parameters to return, for use in tests. If no
      special parameters are defined for a value, will return `"default"` set.
  
  Returns
  -------
  params : dict or list of dict, default = {}
      Parameters to create testing instances of the class
      Each dict are parameters to construct an "interesting" test instance, i.e.,
      `MyClass(**params)` or `MyClass(**params[i])` creates a valid test instance.
      `create_test_instance` uses the first (or only) dictionary in `params`
docstr_tok: ["Return","testing","parameter","settings","for","the","splitter",".","Parameters","--","--","--","--","--","parameter_set",":","str",",","default=","''","default","''","Name","of","the","set","of","test","parameters","to","return",",","for","use","in","tests",".","If","no","special","parameters","are","defined","for","a","value",",","will","return","`","``","default","''","`","set",".","Returns","--","--","--","-","params",":","dict","or","list","of","dict",",","default","=","{","}","Parameters","to","create","testing","instances","of","the","class","Each","dict","are","parameters","to","construct","an","``","interesting","''","test","instance",",","i.e.",",","`","MyClass","(","*","*","params",")","`","or","`","MyClass","(","*","*","params","[","i","]",")","`","creates","a","valid","test","instance",".","`","create_test_instance","`","uses","the","first","(","or","only",")","dictionary","in","`","params","`"]
code: def get_test_params(cls, parameter_set="default"):
      """Return testing parameter settings for the splitter.
  
      Parameters
      ----------
      parameter_set : str, default="default"
          Name of the set of test parameters to return, for use in tests. If no
          special parameters are defined for a value, will return `"default"` set.
  
      Returns
      -------
      params : dict or list of dict, default = {}
          Parameters to create testing instances of the class
          Each dict are parameters to construct an "interesting" test instance, i.e.,
          `MyClass(**params)` or `MyClass(**params[i])` creates a valid test instance.
          `create_test_instance` uses the first (or only) dictionary in `params`
      """
      from sktime.datasets import load_airline
      from sktime.split import (
          ExpandingWindowSplitter,
          SingleWindowSplitter,
      )
  
      y = load_airline()
      y_temp = y[:60]
      cv_1 = ExpandingWindowSplitter(
          fh=[2, 4], initial_window=24, step_length=12
      )
      cv_2 = SingleWindowSplitter(fh=[2, 4], window_length=24)
      return [
          {"cv": cv_1, "y_template": y_temp},
          {"cv": cv_2, "y_template": y_temp},
      ]
  
file_path: sktime/sktime/split/sameloc.py
imports: from typing import Optional
  import pandas
  from sktime.split.base import BaseSplitter
  from sktime.split.base._common import ACCEPTED_Y_TYPES, SPLIT_GENERATOR_TYPE
label_desc: Use image node_id 5 for calling the SameLocSplitter obj's underlying member method code with example usage: obj.get_test_params(cls, parameter_set) and returns: list