
This generator is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.
seq.logits from each proposal sequence, applies softmax, and
writes the decoded string back to seq.sequence. Supports deterministic
argmax decoding or stochastic categorical sampling.
Designed for gradient-based optimizers that update seq.logits directly
and need discrete sequences for handoff or tracking.
API Reference
Configuration for position-specific sequence sampling.This generator is intended for optimizers that own position-specific
sequence distributions and need to materialize discrete proposal sequences
for the rest of the framework.
How to convert position-specific distributions into discrete proposals.Options:
argmax, categoricalSoftmax temperature on logits before decoding. Below 1 sharpens; above 1 flattens. Must be > 0.
Optional declarative sequence-symbol bias applied before decoding.
Optional scale factor applied to logits before adding sequence_bias and decoding.
Position indices used in the mean per-position peak-probability metric; None averages over all.
Usage
python
Metadata
| Property | Value |
|---|---|
| Key | position-weight |
| Class | PositionWeightGenerator |
| Category | gradient |
| Input Type | logits |
| Uses GPU | False |
| Supported Sequence Types | dna, rna, protein |
| Allows Empty Start | False |