Commit e9b41f73 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Labels

parent c6f8ed57
......@@ -54,26 +54,11 @@
- The `train_images` and `train_labels` arrays are the training set—the data the model uses to learn.
- The model is tested against the test set, the `test_images`, and `test_labels` arrays.
- The images are 28x28 NumPy arrays, with pixel values ranging from 0 to 255. The labels are an array of integers, ranging from 0 to 9.
These correspond to the class of clothing the image represents:
| Label | Class |
| ----- | ----- |
| 0 | T-shirt/top |
| 1 | Trouser |
| 2 | Pullover |
| 3 | Dress |
| 4 | Coat |
| 5 | Sandal |
| 6 | Shirt |
| 7 | Sneaker |
| 8 | Bag |
| 9 | Ankle boot |
Each image is mapped to a single label. Since the class names are not included with the dataset, store them here to use later when plotting the images:
These correspond to the class of clothing the image represents. Each image is mapped to a single label. Since the class names are not included with the dataset, we store them here to use later when plotting the images:
%% Cell type:code id:00a6ed38-ea17-4d3d-a745-7e1fa1507ea6 tags:
``` python
class_names = ['T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat', 'Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment