Skip to main content

Binmeths

PyPI version Python versions License bioRxiv preprint

poseigen_binmeths is the binning and split-generation package in the Poseigen ecosystem. It provides utilities for bin construction, bin statistics, balanced sampling, and train/validation/test split strategies used across Poseigen workflows.

See the Binning Methods preprint for the methods implemented here.

Installation

Requires Python 3.12 or newer. Install from PyPI:

python -m pip install poseigen_binmeths

Package

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.

For epoch-sampling integrations, see poseigen_trident.

Case studies

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])

Metadata

Release files for poseigen-binmeths 1.0.1

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 1.0.1
File Size Uploaded Provenance Actions
poseigen_binmeths-1.0.1.tar.gz 17.9 kB With provenance Details for poseigen_binmeths-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 35.6 kB

Release files / poseigen_binmeths-1.0.1.tar.gz

Download URL poseigen_binmeths-1.0.1.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bf787ecf2cb550edff41d28e6684b28d9d27ff4c3afef152437ff31aacbb7701
BLAKE2b-256 checksum
How to use checksums
c4338540f3331b5ac81fb5c9a7f07a511ccc7cc1d48bf840fdb6d916b9562728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

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

Download URL poseigen_binmeths-1.0.1-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
474f0b44e10004dce44d9426620f5e07b7e4a0ee87e50de4ae455b5ac368d68b
BLAKE2b-256 checksum
How to use checksums
ddf4498db0ecc0492566e40a1c014c41e4e94dd8ee1c0851c616f582092c04b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Security for poseigen-binmeths 1.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for poseigen_binmeths-1.0.1.tar.gz

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 Nov 1, 2026.

Transparency log

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.

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