Skip to main content

Blended Dataset Loop

This repository contains a simple loop to compute a balanced ordering of dataset indices to train on. The resulting ordering ensures the data distribution is similar among batches. The loop is implemented in Rust for performance reasons and can be consumed as part of a Python package.

The package uses cffi (rather than e.g. PyO3) in order to be compatible with different Python versions.

Requirements

  • Conda (for Python)
  • Cargo with nightly Rust

Setup

Create a conda environment as follows:

conda create -n blended_dataset_loop python=3.9 -y
conda activate blended_dataset_loop

Install Rust nightly

rustup override set nightly-2024-02-03

Install the Python dev-dependencies:

pip install 'maturin[patchelf]'
pip install '.[dev]'

Develop

After changing the Rust code, run:

maturin develop

or, for release mode

maturin develop --release

Metadata

Release files for blended-dataset-loop 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blended-dataset-loop 0.1.0
File Size Uploaded Provenance Actions
blended_dataset_loop-0.1.0.tar.gz 8.4 kB Without provenance Details for blended_dataset_loop-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for blended-dataset-loop 0.1.0
File Actions
blended_dataset_loop-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for blended_dataset_loop-0.1.0-py3-none-win_amd64.whl
blended_dataset_loop-0.1.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for blended_dataset_loop-0.1.0-py3-none-win32.whl
blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
blended_dataset_loop-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for blended_dataset_loop-0.1.0-py3-none-macosx_11_0_arm64.whl
blended_dataset_loop-0.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for blended_dataset_loop-0.1.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 2.9 MB

Release files / blended_dataset_loop-0.1.0.tar.gz

Download URL blended_dataset_loop-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e8e68830ae567cafc913a4285e0487f1ba199f0d25d9c8b213a2722ddd0140fc
BLAKE2b-256 checksum
How to use checksums
fc6623bd29d9c4df821069c90d1cb89a966a98f3bcfdc02bdde180e1e6c2e62f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / blended_dataset_loop-0.1.0-py3-none-win_amd64.whl

Download URL blended_dataset_loop-0.1.0-py3-none-win_amd64.whl
Size 142.1 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ccce27bddc5d4ca73702ee5993f9be1bdfb86df41acb7cb3d9c676874ef2d52e
BLAKE2b-256 checksum
How to use checksums
024ca13c98b970c33d6d324b523d15297c27f775224ab0ff66ced07ba53bedc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / blended_dataset_loop-0.1.0-py3-none-win32.whl

Download URL blended_dataset_loop-0.1.0-py3-none-win32.whl
Size 137.4 kB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
eab3fd5615bd5a6472acff5ead32bf985ec9b7718f1435ac62180a5680bcb095
BLAKE2b-256 checksum
How to use checksums
e56d6e608ed4613d7e0b05bd816d07c7809bcbca64e27a40d5ebb118115b603e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7ef15d82b14ce589697194bc4ba5f539a2fa775c55ea1ea3dc328c0ccf13a9c0
BLAKE2b-256 checksum
How to use checksums
02f2811b53a255ca9bd5a1f9f38e0c1edd9ec92627d8070c219904d4bb799895
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL blended_dataset_loop-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9154802989162b04400a227511a708805a668bf9556e50d1c5237dc5ceb58a90
BLAKE2b-256 checksum
How to use checksums
b769f506d0485217eebbe3824af4417ac66d027ced7b3bfdb9708be5e6719a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / blended_dataset_loop-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL blended_dataset_loop-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 239.5 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6ef47f5c4743a1b85e4d1267acfb0eac77bf57354cbd4be5f7a47ea39e8eac5c
BLAKE2b-256 checksum
How to use checksums
cc487acc2d296b3a7ed6137e3711b11729c832958eadff824958ce150177d9f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / blended_dataset_loop-0.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL blended_dataset_loop-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 252.8 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0ea8952aa7d5ac27740bd7772f5b8073c862aac5760b8d50ca0cfd7a31e29356
BLAKE2b-256 checksum
How to use checksums
3b5d0a0854131c6d9026fd4aa26c797736505b01cf918ddbd04936c1c0a24a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Security for blended-dataset-loop 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

7 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page