技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
masked_program_embedding【数据与研究】Build BAR-style masked target embeddings and universal tanh-bounded programs while preserving protected target-domain data.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing adversarial reprogramming or a BAR proxy experiment that must embed smaller target-domain arrays in a larger source-domain input and add a universal program only outside the protected region.
Do not use it for ordinary data augmentation or for perturbations that are allowed to alter the target sample content.
None to center the sample.W with the source canvas shape.X.M, with 0 on target data and 1 on programmable cells.P = tanh(W*M).X + P.Run python tests/test_masked_program_embedding.py or validate the skill tree with validate_skill_tree.py --run-tests.
This skill does not choose label mappings or optimize W; it only provides the input transformation contract used by BAR.