Upload folder using huggingface_hub
Browse files- README.md +27 -4
- train.parquet +3 -0
- validation.parquet +3 -0
README.md
CHANGED
|
@@ -12,6 +12,17 @@ size_categories:
|
|
| 12 |
- 100K<n<1M
|
| 13 |
task_categories:
|
| 14 |
- image-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# Handwritten Digits Pack
|
|
@@ -31,13 +42,25 @@ Merged from 3 public datasets:
|
|
| 31 |
|
| 32 |
## Format
|
| 33 |
|
| 34 |
-
- `
|
| 35 |
-
- `
|
| 36 |
-
- `
|
| 37 |
-
- `
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## Loading
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
```python
|
| 42 |
import gzip, torch
|
| 43 |
|
|
|
|
| 12 |
- 100K<n<1M
|
| 13 |
task_categories:
|
| 14 |
- image-classification
|
| 15 |
+
dataset_info:
|
| 16 |
+
features:
|
| 17 |
+
- name: image
|
| 18 |
+
dtype: image
|
| 19 |
+
- name: label
|
| 20 |
+
dtype: int32
|
| 21 |
+
splits:
|
| 22 |
+
- name: train
|
| 23 |
+
num_examples: 503100
|
| 24 |
+
- name: validation
|
| 25 |
+
num_examples: 36758
|
| 26 |
---
|
| 27 |
|
| 28 |
# Handwritten Digits Pack
|
|
|
|
| 42 |
|
| 43 |
## Format
|
| 44 |
|
| 45 |
+
- `train.parquet` — 503,100 rows (191.8 MB)
|
| 46 |
+
- `validation.parquet` — 36,758 rows (11.0 MB)
|
| 47 |
+
- `image` column: PNG-encoded 28×28 grayscale (struct with `bytes` + `path` fields)
|
| 48 |
+
- `label` column: int32, digits 0–9
|
| 49 |
+
|
| 50 |
+
Also available as raw PyTorch tensors:
|
| 51 |
+
- `X_train.pt.gz`, `y_train.pt.gz`, `X_val.pt.gz`, `y_val.pt.gz` — gzip-compressed float32 tensors
|
| 52 |
|
| 53 |
## Loading
|
| 54 |
|
| 55 |
+
### Via `datasets` (recommended)
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from datasets import load_dataset
|
| 59 |
+
ds = load_dataset("leobottaro/handwritten-digits-pack")
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### Via raw tensors
|
| 63 |
+
|
| 64 |
```python
|
| 65 |
import gzip, torch
|
| 66 |
|
train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a4918536d4ae6bf87b3d36fdb4a9dc323c7e92499097ee57a9dee0fdf05cb42
|
| 3 |
+
size 201125233
|
validation.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:306e50ad74f30202f97207226d37db4b0a1ffe42a19e66b7cc501a516331b21e
|
| 3 |
+
size 11492737
|