skdatasets.repositories.ucr.fetch

skdatasets.repositories.ucr.fetch(name: str, *, data_home: Optional[str] = None, return_X_y: Literal[False] = False) Bunch[source]
skdatasets.repositories.ucr.fetch(name: str, *, data_home: Optional[str] = None, return_X_y: Literal[True]) Tuple[ndarray[Any, dtype[float]], ndarray[Any, dtype[int]]]

Fetch UCR dataset.

Fetch a UCR dataset by name. More info at http://www.timeseriesclassification.com/.

Parameters:
  • name (string) – Dataset name.

  • data_home (string or None, default None) – Specify another download and cache folder for the data sets. By default all scikit-learn data is stored in ‘~/scikit_learn_data’ subfolders.

  • return_X_y (bool, default=False) – If True, returns (data, target) instead of a Bunch object.

Returns:

  • data (Bunch) – Dictionary-like object with all the data and metadata.

  • (data, target) (tuple if return_X_y is True)