Datasets
AR Face dataset
- dictlearn.datasets.arface.load_data(path='arface.npz')
Loads the AR Face dataset
- Parameters
path – path where to cache the dataset locally (relative to ~/.dl/datasets)
- Returns
(x_train, y_train), (x_test, y_test)
- Return type
Tuple of Numpy arrays
Example:
(X_train, y_train), (X_test, y_test) = arface.load_data()
Caltech101 dataset
- dictlearn.datasets.caltech101.load_data(path='caltech101.npz')
Loads the Caltech101 dataset
- Parameters
path – path where to cache the dataset locally (relative to ~/.dl/datasets)
- Returns
(x_train, y_train), (x_test, y_test)
- Return type
Tuple of Numpy arrays
Example:
(X_train, y_train), (X_test, y_test) = caltech101.load_data()
MNIST handwritten digits dataset
- dictlearn.datasets.mnist.load_data(path='mnist.npz')
Loads the MNIST dataset
- Parameters
path – path where to cache the dataset locally (relative to ~/.dl/datasets)
- Returns
(x_train, y_train), (x_test, y_test)
- Return type
Tuple of Numpy arrays
Example:
(X_train, y_train), (X_test, y_test) = mnist.load_data()
YaleB dataset
- dictlearn.datasets.yaleb.load_data(path='yaleb.npz')
Loads the YaleB dataset
- Parameters
path – path where to cache the dataset locally (relative to ~/.dl/datasets)
- Returns
(x_train, y_train), (x_test, y_test)
- Return type
Tuple of Numpy arrays
Example:
(X_train, y_train), (X_test, y_test) = yaleb.load_data()