协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
msfm_batch_coupling【开发与工程】Construct uniform and exact small-batch BatchOT couplings for Multisample Flow Matching recovery and tests.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a workflow needs the Multisample Flow Matching pairing step: two equal-size minibatches are converted into either a uniform/independent CondOT baseline or an exact small-batch BatchOT assignment.
Do not use this skill for large production batches unless the exhaustive batch_ot implementation is replaced by a scalable assignment or Sinkhorn solver.
uniform or batch_ot.uniform, report the independent expected cost and a uniform doubly stochastic matrix.batch_ot, solve the exact minimum-cost permutation for small batches.Run:
python scripts/coupling.py --self-test
python tests/test_coupling.py
batch_ot is exhaustive and intended for bounded recovery/tests.