Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
The dataset viewer is not available for this split.
The number of columns (3073) exceeds the maximum supported number of columns (1000). This is a current limitation of the datasets viewer. You can reduce the number of columns if you want the viewer to work.
Error code:   TooManyColumnsError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

MNIST-M (tabular)

A flattened version of Mike0307/MNIST-M for tabular learning (XGBoost, AutoGluon, etc.).

Flatten procedure

  • Each row's image (PNG bytes) is decoded with PIL and converted to RGB.
  • The 32x32x3 pixels are flattened in row-major (H, W, C) order into 3072 features.
  • Columns: px_0 ... px_3071 (uint8, 0-255) plus label (int).
  • The original train/test split is preserved: train.csv, test.csv.

Restoring an image

import pandas as pd, numpy as np
from PIL import Image

row = pd.read_csv("train.csv", nrows=1).iloc[0]
arr = row.drop("label").to_numpy(np.uint8).reshape(32, 32, 3)
Image.fromarray(arr)
Downloads last month
25