Trident
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:
prongsprovides theProng_X,Prong_Y,Prong_Z, andProng_Wgenerators for building configurable neural-network modules.preassprovides pre-assembled architectures, includingSimpNet,StandardNN,RegularNN,ChampionNN, andCycleNN, as well as truncated and dual-input variants.utilsprovides training, prediction, feature extraction, evaluation, and data utilities, including:TridentTrainerfor training with validation, optional batch flipping, weighting, and epoch sampling.TridentTrainer_BWfor bin-aware training with weighting and epoch sampling.TridentPredictor, attention-pooling layers, and binned loss functions.TridentCanScorerandTridentCanRepeaterfor evaluation workflows with poseigen_compass.- Synthetic data generation and other model utilities.
deepstarrprovides a PyTorch implementation of DeepSTARR.
othermodelsprovides models such asBiChromandiSEGnetfor combining DNA sequence and epigenomic signal inputs.
For background on binning and epoch sampling, see the Binning Methods preprint.
Integrations
- poseigen_seaside provides shared utilities and metrics.
- poseigen_binmeths provides binning and sampling utilities used by Trident's training workflows.
- poseigen_compass supports candidate search and evaluation.
- poseigen_mimic and poseigen_oyster build sequence models using Trident.
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.