You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doc Change: Change in shape for CIFAR Datasets (keras-team#11043)
* 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)
* 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.
Copy file name to clipboardExpand all lines: docs/templates/datasets.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ from keras.datasets import cifar10
14
14
15
15
-__Returns:__
16
16
- 2 tuples:
17
-
- __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 3, 32, 32).
17
+
- __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.
18
18
- __y_train, y_test__: uint8 array of category labels (integers in range 0-9) with shape (num_samples,).
19
19
20
20
@@ -34,7 +34,7 @@ from keras.datasets import cifar100
34
34
35
35
-__Returns:__
36
36
- 2 tuples:
37
-
- __x_train, x_test__: uint8 array of RGB image data with shape (num_samples, 3, 32, 32).
37
+
- __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.
38
38
- __y_train, y_test__: uint8 array of category labels with shape (num_samples,).
39
39
40
40
-__Arguments:__
@@ -206,4 +206,4 @@ from keras.datasets import boston_housing
206
206
-__test_split__: fraction of the data to reserve as test set.
207
207
208
208
-__Returns:__
209
-
Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.
209
+
Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.
0 commit comments