计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
probabilistic_mask_relaxation【效率与协作】Build Bernoulli coreset mask probabilities, sample masks, and compute score-function gradients for probabilistic bilevel coreset selection.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a coreset method needs to replace discrete subset membership with independent Bernoulli random variables. It is appropriate for reduced or full implementations of Probabilistic Bilevel Coreset Selection and for diagnostics that need reproducible mask sampling.
Do not use this skill for deterministic greedy addition rules or for weighted coreset objectives with separate learned sample weights; the paper removes those weights so the score-function estimator can operate on binary masks.
n: positive dataset size.budget: expected coreset size K with 0 <= K <= n.probabilities: a length-n vector in [0, 1].seed: integer seed for deterministic sampling.K.grad_s log p(m|s) using clipped probabilities for numerical stability.K / n when no vector is supplied.Bernoulli(s_i).(m_i - s_i) / (s_i * (1 - s_i)).Run python tests/test_mask_relaxation.py or validate this skill tree with validate_skill_tree.py --run-tests. The tests check budget initialization, deterministic sampling, binary outputs, and finite gradients.
This skill does not train the inner model and does not evaluate validation loss. It only owns the probabilistic mask representation required by the outer-loop skill.