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

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

Uploaded Source

Built Distribution

mads_datasets-0.1.5.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mads_datasets-0.1.5.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.13 Darwin/22.5.0

File hashes

Hashes for mads_datasets-0.1.5.1.tar.gz
Algorithm Hash digest
SHA256 3a94022e5c95a33f40f9f59c956919ddd4b20bf1a81ce7392bd8ebdf2b1dd7a6
MD5 9e086816a6326b60d5d0c8faaeb5af9e
BLAKE2b-256 8fdad6b824d41170d4589a796d46baabe09b56eaa25e5f359c96cb717f5f59bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mads_datasets-0.1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.13 Darwin/22.5.0

File hashes

Hashes for mads_datasets-0.1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 728568273f266bc08c3db149b03fae7456c447d3ffd9b5c24e19a5f4de09202d
MD5 3126b0425f68106047894b7bf9de310d
BLAKE2b-256 6dabca218616c7527e616e11f64454e6222d2403843f86737032bdbe31b20052

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