From 69af4be38559d2c19e3e841df30f3718cd2e4ae8 Mon Sep 17 00:00:00 2001 From: Sri Yogesh K Date: Fri, 31 Aug 2018 16:07:25 +0530 Subject: [PATCH 1/2] Doc Change: Change in shape for CIFAR Datasets Both the CIFAR datasets have been updates now having the channel as the last dimension in the shape resulting in (num_samples, 32, 32, 3) --- docs/templates/datasets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/templates/datasets.md b/docs/templates/datasets.md index a2f1d1a1eabc..9942afc35e81 100644 --- a/docs/templates/datasets.md +++ b/docs/templates/datasets.md @@ -14,7 +14,7 @@ from keras.datasets import cifar10 - __Returns:__ - 2 tuples: - - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 3, 32, 32). + - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 32, 32, 3). - __y_train, y_test__: uint8 array of category labels (integers in range 0-9) with shape (num_samples,). @@ -34,7 +34,7 @@ from keras.datasets import cifar100 - __Returns:__ - 2 tuples: - - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 3, 32, 32). + - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 32, 32, 3). - __y_train, y_test__: uint8 array of category labels with shape (num_samples,). - __Arguments:__ @@ -206,4 +206,4 @@ from keras.datasets import boston_housing - __test_split__: fraction of the data to reserve as test set. - __Returns:__ - Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`. \ No newline at end of file + Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`. From 16fbc40a24e170e1dcf9d62432d7fe797a1ffce9 Mon Sep 17 00:00:00 2001 From: Sri Yogesh K Date: Fri, 31 Aug 2018 17:00:01 +0530 Subject: [PATCH 2/2] Doc change added information on the shape of CIFAR datasets The CIFAR datasets download in either channels_first or the channels_last format based on the backend setting. --- docs/templates/datasets.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/templates/datasets.md b/docs/templates/datasets.md index 9942afc35e81..a35483943796 100644 --- a/docs/templates/datasets.md +++ b/docs/templates/datasets.md @@ -14,7 +14,7 @@ from keras.datasets import cifar10 - __Returns:__ - 2 tuples: - - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 32, 32, 3). + - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 3, 32, 32) or (num_samples, 32, 32, 3) based on the `image_data_format` backend setting of either `channels_first` or `channels_last` respectively. - __y_train, y_test__: uint8 array of category labels (integers in range 0-9) with shape (num_samples,). @@ -34,7 +34,7 @@ from keras.datasets import cifar100 - __Returns:__ - 2 tuples: - - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 32, 32, 3). + - __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 3, 32, 32) or (num_samples, 32, 32, 3) based on the `image_data_format` backend setting of either `channels_first` or `channels_last` respectively. - __y_train, y_test__: uint8 array of category labels with shape (num_samples,). - __Arguments:__