skdatasets.repositories.uci.fetch

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

Fetch UCI dataset.

Fetch a UCI dataset by name. More info at https://archive.ics.uci.edu/ml/datasets.html.

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)