executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
probabilistic_mask_relaxationBuild Bernoulli coreset mask probabilities, sample masks, and compute score-function gradients for probabilistic bilevel coreset selection.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.