Skip to main content

An easy to use PyTorch utility for easy DataLoader creation.

Project description

MouseBit

An easy to use PyTorch utility for easy DataLoader creation. DataLoader creation can be redundant at times, keeping that in mind MouseBit was created to quickly create DataLoaders quickly.

New Features

  • Added Text and Image Dataloader support.
  • Wrapped Fetching Dataloader to a function instead of class.

Tutorial

Currently it only supports structured data but I'll be extending it's support for image and text data soon.

Creating Dataloaders for Structured Data

In order to get the dataloader start by creating the FetchDataLoader instance and calling get_dataloader method to get dataloader for the corresponding data.

>>> from mousebit.structured import FetchDataLoader
>>> msb = FetchDataLoader(X,Y)
>>> dataloader = msb.get_dataloader(self, batch_size = 64, drop_last = True, shuffle = True)
Getting Train and Test Dataloaders for Structured Data

To get train and test dataloaders MouseBit has get_dataloader_splits method in FetchDataLoader.

>>> from mousebit.structured import FetchDataLoader
>>> msb = FetchDataLoader(X,Y)
>>> trainloader, testloader = msb.get_dataloader_splits(self, batch_size = 64, stratify_on_y = False, random_state = 101, test_size = 0.3)

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

MouseBit-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

MouseBit-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file MouseBit-0.0.2.tar.gz.

File metadata

  • Download URL: MouseBit-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for MouseBit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b3789e14dd8aa776a86c4ef907ed5e43538ecfb7b2f3179def0e0e98330a538d
MD5 081d27b41a8589f17955c4eb3cf11fcf
BLAKE2b-256 93968926c695bfab9fa1e1d4fadd50a0a7217de8fbb0dab066dfb9141d7015ad

See more details on using hashes here.

File details

Details for the file MouseBit-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: MouseBit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for MouseBit-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c620bd6fc00a051c1d04a68ea40056cfa6e9f05da8aee20d78e06160a6050c
MD5 e51e4b8fdbeda0c290146c9bfa958760
BLAKE2b-256 6802f161abf08b67ffa8914435840eeede66f852c5ea596c0694c54c15353468

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