File size: 1,181 Bytes
64530b2
94a4154
 
dc3b21c
 
 
 
94a4154
dc3b21c
94a4154
dc3b21c
64530b2
94a4154
dc3b21c
94a4154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
license: mit
tags:
  - cifar10
  - image-classification
  - subset
  - computer-vision
source_datasets:
  - tanganke/cifar10
task_categories:
  - image-classification
---

# CIFAR-10 — Subset

Stratified random subset of [CIFAR-10](https://www.cs.toronto.edu/~kriz/cifar.html).

| Split      | Rows      | Per class |
|------------|-----------|-----------|
| train      | 5,000  | 500 |
| test       | 1,000   | 100 |
| validation | 500    | 50 |

**Classes:** airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck
**Images:** 32 × 32 RGB | **Seed:** 42

## Label Map

| ID | Class      | ID | Class |
|----|------------|----|-------|
| 0  | airplane   | 5  | dog   |
| 1  | automobile | 6  | frog  |
| 2  | bird       | 7  | horse |
| 3  | cat        | 8  | ship  |
| 4  | deer       | 9  | truck |

## Usage

```python
from datasets import load_dataset

ds = load_dataset("Chiranjeev007/CIFAR-10_Subset")
print(ds)
# DatasetDict({
#   train:      Dataset(num_rows: 5000),
#   validation: Dataset(num_rows: 500),
#   test:       Dataset(num_rows: 1000)
# })

sample = ds["train"][0]
sample["image"]   # PIL Image 32×32 RGB
sample["label"]   # int 0–9
```