chrisjcc/mnist-cnn
Image Classification • 422k • Updated • 31
source string | seed int64 | val_fraction float64 | normalization dict | splits dict |
|---|---|---|---|---|
torchvision.datasets.MNIST | 42 | 0.1 | {
"mean": 0.1307,
"std": 0.3081
} | {
"train": {
"num_examples": 54000,
"shape": [
54000,
1,
28,
28
],
"images_sha256": "e166767e5a42177b25bc1cd0b303bda71a5100c459fd1ca59094cdf17db9dc5f",
"labels_sha256": "df8a3e71858945eb09a10ff9b0e22f831150b4097a30bfd49ee591dae16e933f",
"class_distribution": {
"0"... |
chrisjcc/mnist-dataset
The MNIST (Modified National Institute of Standards and Technology) database of handwritten digits (LeCun, Cortes, & Burges, 1998) is a canonical computer vision benchmark consisting of $28 \times 28$ 8-bit grayscale images of handwritten digits (0 through 9).
torchvision.datasets.MNIST / ylecun/mnisttorchvision.datasets.MNIST42 (val_fraction = 0.1)To prevent test-set leakage during hyperparameter selection and early stopping, the upstream 60,000-sample training set is deterministically partitioned using stratified_train_val_split(val_fraction=0.1, seed=42) into:
data/processed/train.pt): 54,000 samples (sha256: e166767e5a42177b...)data/processed/val.pt): 6,000 samples (sha256: 5631ffe885229a98...)data/processed/test.pt): 10,000 samples (sha256: 757b3cee157a4aa2...)uint8 pixels in [0, 255] are scaled to float32 in [0.0, 1.0] by dividing by 255.0.(N, 1, 28, 28) (torch.float32), paired with labels (N,) (torch.int64 in [0, 9]).| Digit Class | Train Samples | Validation Samples | Test Samples | Total |
|---|---|---|---|---|
| Digit 0 | 5331 | 592 | 980 | 6903 |
| Digit 1 | 6067 | 675 | 1135 | 7877 |
| Digit 2 | 5362 | 596 | 1032 | 6990 |
| Digit 3 | 5518 | 613 | 1010 | 7141 |
| Digit 4 | 5258 | 584 | 982 | 6824 |
| Digit 5 | 4879 | 542 | 892 | 6313 |
| Digit 6 | 5326 | 592 | 958 | 6876 |
| Digit 7 | 5639 | 626 | 1028 | 7293 |
| Digit 8 | 5266 | 585 | 974 | 6825 |
| Digit 9 | 5354 | 595 | 1009 | 6958 |
| Total | 54,000 | 6,000 | 10,000 | 70,000 |
# Run via Makefile
make data
# Or run the Hydra CLI entrypoint directly
python scripts/preprocess.py data.seed=42 data.val_fraction=0.1
# Or reproduce the DVC stage
dvc repro preprocess