skdatasets.repositories.keras.fetch

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

Fetch Keras dataset.

Fetch a Keras dataset by name. More info at https://keras.io/datasets.

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 https://keras.io/datasets.

Returns:

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

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