l0
L0 regularization for neural network sparsification and intelligent sampling - used in survey calibration
npx skills add majiayu000/claude-skill-registry --skill l0-skill --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# L0 Regularization L0 is a PyTorch implementation of L0 regularization for neural network sparsification and intelligent sampling, used in PolicyEngine's survey calibration pipeline. ## For Users 👥 ### What is L0? L0 regularization helps PolicyEngine create more efficient survey datasets by intelligently selecting which households to include in calculations. **Impact you see:** - Faster population impact calculations - Smaller dataset sizes - Maintained accuracy with fewer samples **Behind the scenes:** When PolicyEngine shows population-wide impacts, L0 helps select representative households from the full survey, reducing computation time while maintaining accuracy. ## For Analysts 📊 ### What L0 Does L0 provides intelligent sampling gates for: - **Household selection** - Choose representative samples from CPS - **Feature selection** - Identify important variables - **Sparse weighting** - Create compact, efficient datasets **Used in PolicyEngine for:** - Survey calibration (via microcalibrate) - Dataset sparsification in policyengine-us-data - Efficient microsimulation ### Installation ```bash pip install l0-python ``` ### Quick Example: Sample Selection ```python from l0 import
- For Users 👥
- What is L0?
- For Analysts 📊
- What L0 Does
- Installation
- Quick Example: Sample Selection
- Integration with microcalibrate
- For Contributors 💻
- Repository
- Current Implementation
- Key Concepts
- Usage in PolicyEngine
- Temperature Scheduling
- L0L2 Combined Penalty
pip install l0-python git clone https://github.com/PolicyEngine/L0 cd L0 tree l0/ Key modules: ls l0/ Hard Concrete distribution (core algorithm) cat l0/hard_concrete.py Sample gates (used in calibration) cat l0/gates.py
What does the l0 skill do?
L0 regularization for neural network sparsification and intelligent sampling - used in survey calibration
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill l0-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
