brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
dlr_margin_lossCompute DLR-style logit margin losses for APGD-DLR adversarial optimization checks.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.