
This optimizer 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.
(L, |vocab|) logits, starting from the target’s logits (else its one-hot, else zeros).
Samples are decoded by the PositionWeightGenerator and scored with score_energy;
the best half of each generation’s passing samples updates the distribution. Results are each
trajectory’s best decoded sequence and energy, with the trajectory’s current mean as
logits: the learned position-weight matrix, reusable by a later stage.
With constraint_weight_schedules, generation t scores its samples at the weights
scheduled for t; each generation’s ranking uses one set of weights, and each trajectory’s
best-so-far energy is shifted to those weights from its recorded per-constraint scores before
the generation’s best is compared with it.
Reference: Ros & Hansen (2008), “A Simple Modification in CMA-ES Achieving Linear
Time and Space Complexity”, PPSN X.
API Reference
Configuration for separable CMA-ES logit search.
The search dimension is
n = L * |vocab| (about 4000 for a 200-residue protein),
so with the default population the covariance and step-size learning rates are small
and the search moves slowly. It suits short segments or modest budgets of expensive
scorers; raise population_size for longer segments.Number of CMA-ES generations; each samples, scores, and updates the search distribution.
Emit per-step debug information about proposals, scores, and acceptance through the logger.
With a checkpoint_dir, checkpoint the running stage every N iterations. None: stage ends only.
Stop after N iterations in a row without improving the best energy (first sets it). None disables.
Minimum decrease of the best energy that counts as improvement for plateau_patience.
Usage
python