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.3.tar.gz
.
File metadata
- Download URL: mads_datasets-0.3.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d582d9c5d29782ef96b0d3ecdfaf9420b878b7c80234730d9af2a5cf391724c6 |
|
MD5 | 3ec007bd9da23950e5e94a43376a1a58 |
|
BLAKE2b-256 | 982c17b9ff893f2b0de75f8cd3f1e79de081c38cdafb578d84cd1bc49ce03af7 |
File details
Details for the file mads_datasets-0.3-py3-none-any.whl
.
File metadata
- Download URL: mads_datasets-0.3-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6803eb70e935fcff5810ae197eccfcd17e3307e86557b0a4a17e3ee777dd1db4 |
|
MD5 | 6d28235a44b1acba95676cf7f841db70 |
|
BLAKE2b-256 | f9bd8e32af5cb9005b804dbd2fd10712ed48f53ff4f3420b7175b8fa658432d9 |