Abstract Dataloader: Dataloader Not Included.
Project description
Abstract Dataloader: Dataloader Not Included
What is the Abstract Dataloader?
The abstract dataloader (ADL) is a minimalist specification for creating composable and interoperable dataloaders and data transformations, along with abstract template implementations and reusable generic components.
The ADL's specifications and bundled implementations lean heavily on generic type annotations in order to enable type checking using static type checkers such as mypy or pyright and runtime (dynamic) type checkers such as beartype and typeguard.
[!TIP] Since the abstract dataloader uses python's structural subtyping -
Protocol- feature, theabstract_dataloaderis not a required dependency for using the abstract dataloader! Implementations which follow the specifications are fully interoperable, including with type checkers, even if they do not have any mutual dependencies - including this library.
For detailed documentation, please see the project site.
Why Abstract?
Loading, preprocessing, and training models on time-series data is ubiquitous in machine learning for cyber-physical systems. However, unlike mainstream machine learning research, which has largely standardized around "canonical modalities" in computer vision (RGB images) and natural language processing (ordinary unstructured text), each new setting, dataset, and modality comes with a new set of tasks, questions, challenges - and data types which must be loaded and processed.
This poses a substantial software engineering challenge. With many different modalities, processing algorithms which operate on the power set of those different modalities, and downstream tasks which also each depend on some subset of modalities, two undesirable potential outcomes emerge:
- Data loading and processing components fragment into an exponential number of incompatible chunks, each of which encapsulates its required loading and processing functionality in a slightly different way. The barrier this presents to rapid prototyping needs no further explanation.
- The various software components coalesce into a monolith which nominally supports the power set of all functionality. However, in addition to the compatibility issues that come with bundling heterogeneous requirements such as managing "non-dependencies" (i.e. dependencies which are required by the monolith, but not a particular task), this also presents a hidden challenge in that by support exponentially many possible configurations, such an architecture is also exponentially hard to debug and verify.
However, we do not believe that these outcomes are a foregone conclusion. In particular, we believe that it's possible to write "one true dataloader" which can scale while maintaining intercompability by not writing a common dataloader at all -- but rather a common specification for writing dataloaders. We call this the "abstract dataloader".
Setup
While it is not necessary to install the abstract_dataloader in order to take advantage of ADL-compliant components, installing this library provides access to Protocol types which describe each interface, as well as generic components which may be useful for working with ADL-compliant components.
pip install abstract-dataloader
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abstract_dataloader-0.4.4.tar.gz.
File metadata
- Download URL: abstract_dataloader-0.4.4.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed7094bae72a86192eae5386eee5524a5733c507c993a517aeab1d31368d0f5f
|
|
| MD5 |
11b33651254cd174eebc9d9940c56b86
|
|
| BLAKE2b-256 |
0349162d459386cd139334bba2de69e29113e1e340566dce7e05e71f44b30e53
|
File details
Details for the file abstract_dataloader-0.4.4-py3-none-any.whl.
File metadata
- Download URL: abstract_dataloader-0.4.4-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
587c1d5b6f1809ab71953e82546e00f9fb74586528b342498eee111f0177fba2
|
|
| MD5 |
d85f35bd76e09335e216804a8dc7a4b9
|
|
| BLAKE2b-256 |
337395f5eba20a05b1ba75f56fe1f4c34ed464a849ed3f688df8ffbedad49072
|