Datasets for the master applied data science
Project description
MADS Datasets Library
This library provides the functionality to download, process, and stream several datasets.
Installation
This library has been published on PyPi and can be installed with pip or poetry.
# Install with pip
pip install mads_datasets
# Install with poetry
poetry add mads_datasets
Data Types
Currently, it supports the following datasets:
- SUNSPOTS Time-Series data
- IMDB Text data
- FLOWERS Image data
- FASHION MNIST Image data
- GESTURES Time-Series data
- IRIS dataset
Usage
After installation, import the necessary components:
from mads_datasets import DatasetFactoryProvider, DatasetType
You can create a specific dataset factory using the DatasetFactoryProvider
.
For instance, to create a factory for the Fashion MNIST dataset:
fashion_factory = DatasetFactoryProvider.create_factory(DatasetType.FASHION)
With the factory, you can download the data, create datasets and provide the datasets wrapped in datastreamers in one command:
streamers = mnistfactory.create_datastreamer(batchsize=32)
train = streamers["train"]
X, y = next(train.stream())
The train.stream() command wil return a generator that will yield batches of data.
You could also create a dataset directly:
dataset = fashion_factory.create_dataset()
Or download the data:
fashion_factory.download_data()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mads_datasets-0.2.tar.gz
.
File metadata
- Download URL: mads_datasets-0.2.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8feecc4e966022e49f1831d82beaff66d519c2096e3a6c2a070b5c0375006eea |
|
MD5 | 382072a3d39b63c207be0528b8b5a50d |
|
BLAKE2b-256 | ee01c706ac9728fbacfbcba5033465401fd19495daf42ec78709376156a9b0e0 |
File details
Details for the file mads_datasets-0.2-py3-none-any.whl
.
File metadata
- Download URL: mads_datasets-0.2-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8535f8d33436adcb02ad34b57bb03a8806fbc6da42e5900ec22fceddbaee72a6 |
|
MD5 | f7a9e2d27de3eb2dfbab7b985f9f6ba1 |
|
BLAKE2b-256 | 7170a1ece0516ea1fdd87bf999e17665db48bebbf9ccbf3950f481f801608eca |