Registry / data / scikit-datasets

scikit-datasets

JSON →
library0.2.5pypypi✓ verified 81d ago

scikit-datasets provides a collection of ready-to-use datasets compatible with scikit-learn, wrapping common benchmarks like MNIST, CIFAR, and more. Version 0.2.5, updated irregularly.

pip install scikit-datasets
INSTALL
IMPORT
SIG · SCIKIT-DATASETS
S
scikit-datasets
datapythonv0.2.5
Install
9.9s avg
Import
Disk
280MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 9.9s · import 0.000s · 270MB
280MB installed
● package 280MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fetch
from skdatasets import fetch
from skdata import load_mnist
repositories
from skdatasets import repositories
from skdata import load_mnist

Loads MNIST and fits an SVM classifier.

from skdata import load_mnist from sklearn.svm import SVC data = load_mnist() X, y = data.data, data.target clf = SVC().fit(X, y) print(clf.score(X, y))
Debug
Known issues
breakingIn version 0.2.5, the package name changed from 'scikit_datasets' to 'skdata' for imports. Code using 'from scikit_datasets import ...' will break.
fix
Change import to 'from skdata import ...'.
affects: <0.2.5 -> 0.2.5
deprecatedThe 'as_frames' parameter for returning pandas DataFrames is deprecated in favor of 'as_frame=True', which will become the default in future versions.
fix
Use 'as_frame=True' instead of 'as_frames=True'.
affects: 0.2.x
gotchaDataset downloads can be large (e.g., MNIST ~15MB, CIFAR-10 ~170MB) and are cached in ~/skdata_data/. Not all datasets are bundled; some require an internet connection on first load.
fix
Ensure internet access for first-time download, or cache the data directory.
affects: all
Upgrade
Version history
0.2.5latest on PyPI · released Jun 22, 2025
Audit
Dependencies
scikit-learnrequiredCore dependency for dataset compatibility and return types (Bunch objects).
numpyrequiredUsed internally for data arrays.
pandasoptionalOptional for DataFrame conversion.
Agent activity
28 hits · last 30 days
node
20
OpenAI (training)
1
Resources
scikit-datasets — pip install scikit-datasets · libregistry