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, conda, pdm or poetry.

# Install with pip
pip install mads_datasets

# Install with poetry
poetry add mads_datasets

# install with pdm
pdm add mads_datasets

Data Types

Currently, it supports the following datasets:

  • SUNSPOTS Time-Series data, 3000 monthly sunspot observations from 1749
  • IMDB Text data, 50k movie reviews with positive and negative sentiment labels
  • FLOWERS Image data, about 3000 large and complex images of 5 flowers
  • FASHION MNIST Image data, 60k images sized 28x28 pixels
  • GESTURES Time-Series data with x, y and z accelerometer data for 20 gestures.
  • IRIS dataset, 150 observations of 4 features of 3 iris flower species
  • PENGUINS dataset, an alternative to Iris with 344 penguins on multiple islands.
  • FAVORITA dataset, 125 million sales records of 50k products in 54 stores.

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.3.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

mads_datasets-0.3.5-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mads_datasets-0.3.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.2 CPython/3.11.5

File hashes

Hashes for mads_datasets-0.3.5.tar.gz
Algorithm Hash digest
SHA256 3086cf5f850004cbe8e6cb544225fc5f0bc07128315e62883c213394670b09c1
MD5 3b10c1681b0a2921fd726d4e2457517c
BLAKE2b-256 14a473a5999bc847e4e9521330382f46ac3e45d87894a3b9c7658bb1fc40aebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mads_datasets-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aa52766d4992175f6695c451a6dd50dc4aae54ebaa8781e4ce17b45e6ed1ba89
MD5 bb4a68e5205d893fa9440b83f9daf9cb
BLAKE2b-256 ac227c8f1e3833c2e684eec3e626e7487cac5d459ff4a6fc613155a04bc90a59

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