Skip to main content

Binning and split-generation methods for the Poseigen package family

Project description

Binmeths

This package implements methods explored in the Binning Methods paper. poseigen_binmeths is the binning and split-generation package in the Poseigen family. It provides utilities for bin construction, bin statistics, balanced sampling, and train/validation/test split strategies used across Poseigen workflows.

Features

poseigen_binmeths is organized into three modules:

  • bin_utils: bin parsing and assignment, histogram utilities, objective binning helpers, bin counts and densities, and weighted bin selection.
  • split_utils: split generation utilities including random, window, stratified, and akin-based scoring/split selection methods.
  • harpoon: balanced per-bin samplers including NumPy and PyTorch implementations, plus overlapping-bin sampling helpers.

Find Epoch Sampling poseigen_trident.

Binning methods are used in the following case studies:

Installation

Install from PyPI:

pip install poseigen_binmeths

For local development, install from source using your preferred editable-install workflow.

Usage

Import from the package namespace (bin utilities are re-exported):

import poseigen_binmeths as pbm

Or import modules directly:

import poseigen_binmeths.bin_utils as bu
import poseigen_binmeths.split_utils as su
import poseigen_binmeths.harpoon as harp

Example: histogram binning and a random split.

import numpy as np
import poseigen_binmeths.bin_utils as bu
import poseigen_binmeths.split_utils as su

x = np.random.randn(1000)
bind = bu.HistBinning(x, bins=20)
train_idx, test_idx = su.SplitGen_Random(len(bind), proportions=[0.8, 0.2])

Project Status

poseigen_binmeths is in active development and is intended to support binning and sampling workflows across the Poseigen ecosystem.

Related Projects

  • poseigen_seaside: shared utilities and metrics foundation.
  • poseigen_trident: model training workflows, including epoch sampling integrations.

License

This project is released under the MIT License.

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

poseigen_binmeths-0.1.3.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poseigen_binmeths-0.1.3-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file poseigen_binmeths-0.1.3.tar.gz.

File metadata

  • Download URL: poseigen_binmeths-0.1.3.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for poseigen_binmeths-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ea64ac3418b87ffe925e700957709e3ea66708cb130777a819ab17ad8188e016
MD5 0809135a1d82398bb0b669799f509ddb
BLAKE2b-256 1bdfd782b672f4abbf65f7e992e2b3adf8e152322d6730fdf19a8dc1c42af48a

See more details on using hashes here.

Provenance

The following attestation bundles were made for poseigen_binmeths-0.1.3.tar.gz:

Publisher: release.yaml on Husam94/poseigen_binmeths

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file poseigen_binmeths-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for poseigen_binmeths-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 94c2aa23f8a48d0d81704366bbc008ba83061a91ddd3bcb3802ca3fa5a50b445
MD5 123b5ce21373e1f9b17a29002e736897
BLAKE2b-256 0d35de7fb7b66267e5c7c839601000f7fe9e9e5a16efcb0d0549fd5092941338

See more details on using hashes here.

Provenance

The following attestation bundles were made for poseigen_binmeths-0.1.3-py3-none-any.whl:

Publisher: release.yaml on Husam94/poseigen_binmeths

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page