alibi.datasets.tensorflow module

alibi.datasets.tensorflow.fetch_fashion_mnist(return_X_y=False)[source]

Loads the Fashion MNIST dataset.

Parameters:

return_X_y (bool) – If True, an N x M x P array of data points and N-array of labels are returned instead of a dict.

Return type:

Union[Bunch, Tuple[ndarray, ndarray]]

Returns:

  • If return_X_y=False, a Bunch object with fields ‘data’, ‘targets’ and ‘target_names’

  • is returned. Otherwise an array with data points and an array of labels is returned.