Skip to main content

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.

Metadata

Release files for poseigen-binmeths 0.1.3

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

Source distribution (sdist)

Source distribution for poseigen-binmeths 0.1.3
File Size Uploaded
poseigen_binmeths-0.1.3.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poseigen-binmeths 0.1.3
File Interpreter ABI Platform
poseigen_binmeths-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 35.6 kB

Release files / poseigen_binmeths-0.1.3.tar.gz

Download URL poseigen_binmeths-0.1.3.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ea64ac3418b87ffe925e700957709e3ea66708cb130777a819ab17ad8188e016
BLAKE2b-256 checksum
How to use checksums
1bdfd782b672f4abbf65f7e992e2b3adf8e152322d6730fdf19a8dc1c42af48a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.

Transparency log

Release files / poseigen_binmeths-0.1.3-py3-none-any.whl

Download URL poseigen_binmeths-0.1.3-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94c2aa23f8a48d0d81704366bbc008ba83061a91ddd3bcb3802ca3fa5a50b445
BLAKE2b-256 checksum
How to use checksums
0d35de7fb7b66267e5c7c839601000f7fe9e9e5a16efcb0d0549fd5092941338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.0.1

2 release files

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