cog_datasets
Convenience package so that you can keep your data sets in one place, but load them anywhere.
Installation Instructions
Run the following command in your terminal
pip install cog-datasets
Usage
# utilities for downloading cifar-10, mnist, and fashion-mnist
# mnist-data is included in this repo
from cog_datasets import download_cifar10, download_fashion_mnist, download_mnist
# utilities for loading various data sets
from cog_datasets import load_mnist, load_fashion_mnist, load_cifar10, ToyData
By default, all data sets will be downloaded to ~/datasets
. You can overwrite this via
>>> import cog_datasets
>>> cog_datasets.set_path('mydir', mkdir=True)
`datasets module: datasets will be loaded from 'C:\Users\You\mydir'
This will write your datasets
path to ~/.datasets
.
You can restore the default path with:
>>> cog_datasets.restore_default_path(True)