Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mads_datasets-0.2.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

mads_datasets-0.2.2-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file mads_datasets-0.2.2.tar.gz.

File metadata

  • Download URL: mads_datasets-0.2.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.7.4 CPython/3.9.16

File hashes

Hashes for mads_datasets-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2ef9b8f595efc227c7ea35b3e7545213f2c490c2e32f94dab9b303f0056c2274
MD5 96d8664d51bef66d3b5d33d1e5a79de8
BLAKE2b-256 fc9aab628e01bbdac3d02471d013a14bc5bdd1838eb22cc3e432c2d8a5f16073

See more details on using hashes here.

File details

Details for the file mads_datasets-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mads_datasets-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58a7e54a8fad313ee233c3de8f7534aa1cb32bb85e02ba055544c8306aaf16d5
MD5 0a9ecce41785f26878c1458dd06bed78
BLAKE2b-256 2804ff1a1f5fefb92f999b7e534e216ea2820471edebc2d754a41949d1ebf3a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page