Skip to content

Commit 76da5f0

Browse files
Sri Yogesh Kfchollet
authored andcommitted
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.
1 parent 1ef2843 commit 76da5f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templates/datasets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ from keras.datasets import cifar10
1414

1515
- __Returns:__
1616
- 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.
1818
- __y_train, y_test__: uint8 array of category labels (integers in range 0-9) with shape (num_samples,).
1919

2020

@@ -34,7 +34,7 @@ from keras.datasets import cifar100
3434

3535
- __Returns:__
3636
- 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.
3838
- __y_train, y_test__: uint8 array of category labels with shape (num_samples,).
3939

4040
- __Arguments:__
@@ -206,4 +206,4 @@ from keras.datasets import boston_housing
206206
- __test_split__: fraction of the data to reserve as test set.
207207

208208
- __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

Comments
 (0)