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

Uploaded Source

Built Distribution

mads_datasets-0.3.4-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mads_datasets-0.3.4.tar.gz
  • Upload date:
  • Size: 12.8 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.4.tar.gz
Algorithm Hash digest
SHA256 499b62abcd29a9fcf794e0e98b2421c695868dd51916cbfd57db833a9c5f4d43
MD5 3ef2623858e676ec3610ba2c06e1b071
BLAKE2b-256 885ac2a0133f8ff9c9014c462ed70f74128bdaa8c291ec3f8d43ab67bec371ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mads_datasets-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 15b51faf5a8bba06c2b9fb3ac98c481740f242ba07eb94eb3e79e8508e4afaa0
MD5 0c92e6e65d3864be0437fca8a28c31e0
BLAKE2b-256 be4b477f3d9cb05a1cbaf8731d2f44517c1fdf41428673ec8ddad9ea42949fbd

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