协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
dlr_margin_loss【开发与工程】Compute DLR-style logit margin losses for APGD-DLR adversarial optimization checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when an adversarial attack needs the AutoAttack DLR loss or when validating that a proxy attack preserves APGD-DLR semantics. Do not use it for binary classifiers or tasks without ordered class logits.
Run python tests/test_dlr.py or the generated skill validator.
This pure-Python helper is intended for deterministic small examples and mirrors the untargeted loss needed by the recovery harness.