skdatasets.repositories.sklearn.fetch

skdatasets.repositories.sklearn.fetch(name, *, return_X_y=False, **kwargs)[source]

Fetch Scikit-learn dataset.

Fetch a Scikit-learn dataset by name. More info at http://scikit-learn.org/stable/datasets/index.html.

Parameters:
  • name (string) – Dataset name.

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

  • **kwargs (dict) – Optional key-value arguments. See scikit-learn.org/stable/modules/classes.html#module-sklearn.datasets.

Returns:

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

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