Skip to main content

Trident

PyPI version Python versions License

Trident is the neural-network design and training package in the Poseigen ecosystem. It provides composable architecture generators, ready-to-use models, and tools for training and evaluating neural networks on sequence, signal, and other data.

Installation

Requires Python 3.12 or newer. Install from PyPI:

python -m pip install poseigen_trident

Package

Trident is organized into five modules:

  • prongs provides the Prong_X, Prong_Y, Prong_Z, and Prong_W generators for building configurable neural-network modules.
  • preass provides pre-assembled architectures, including SimpNet, StandardNN, RegularNN, ChampionNN, and CycleNN, as well as truncated and dual-input variants.
  • utils provides training, prediction, feature extraction, evaluation, and data utilities, including:
    • TridentTrainer for training with validation, optional batch flipping, weighting, and epoch sampling.
    • TridentTrainer_BW for bin-aware training with weighting and epoch sampling.
    • TridentPredictor, attention-pooling layers, and binned loss functions.
    • TridentCanScorer and TridentCanRepeater for evaluation workflows with poseigen_compass.
    • Synthetic data generation and other model utilities.
    • deepstarr provides a PyTorch implementation of DeepSTARR.
  • othermodels provides models such as BiChrom and iSEGnet for combining DNA sequence and epigenomic signal inputs.

For background on binning and epoch sampling, see the Binning Methods preprint.

Integrations

Usage

Import the architecture and training utilities you need:

import poseigen_trident.preass as preass
import poseigen_trident.prongs as prongs
import poseigen_trident.utils as tu

After preparing a model, inputs, targets, and train/validation indices, train with TridentTrainer:

metrics = tu.TridentTrainer(
    model,
    inps,
    out,
    Split=[train_indices, validation_indices],
    maxepochs=100,
)

Metadata

Release files for poseigen-trident 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-trident 1.0.1
File Size Uploaded Provenance Actions
poseigen_trident-1.0.1.tar.gz 34.5 kB With provenance Details for poseigen_trident-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 69.5 kB

Release files / poseigen_trident-1.0.1.tar.gz

Download URL poseigen_trident-1.0.1.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d7c5b8834cb4264c4405f72dfa2c1b219978b8a654d53bae463e91a8eff384bc
BLAKE2b-256 checksum
How to use checksums
9ef5d25fc1622a24f1b70a7d24ec29335e110333f0db84c0582193be9f7a6b92
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_trident-1.0.1-py3-none-any.whl

Download URL poseigen_trident-1.0.1-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5a6cb6c888e34204010189983cb2dd4676f23ad08d70b64cdbdc255ae51d0d3
BLAKE2b-256 checksum
How to use checksums
8aa83c8e287f513b48081410a1a86169bbbaa9e6ccf6321f48d4349809c9f6c0
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-trident 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_trident-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