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

Uploaded Source

Built Distribution

mads_datasets-0.3.2-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mads_datasets-0.3.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.8.2 CPython/3.11.4

File hashes

Hashes for mads_datasets-0.3.2.tar.gz
Algorithm Hash digest
SHA256 ddbc6033c8eb836ac458813fbfe6cac2a1c49a17f161cba2b01aa6c74a26cdf0
MD5 6ff00f32275b643727055405803d91a5
BLAKE2b-256 b673971266d0a96c514bdd0883f9fac752c29264000c8e984aa9a563a9d3caf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mads_datasets-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0bdf84caa0ad7f0b45dc90ce5bad658cea62892be8ae150107a9706b312f8f
MD5 48de5fb2c6ffff5c3d7e79259c3615e1
BLAKE2b-256 15343a184c63a45d77f6ed72844a8dd0ee729f1f2841caa24fc365ebb950190d

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