Agent skill

l0

L0 regularization for neural network sparsification and intelligent sampling - used in survey calibration

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill l0-skill --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/ai-ml/l0-skill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. For Users 👥
  2. What is L0?
  3. For Analysts 📊
  4. What L0 Does
  5. Installation
  6. Quick Example: Sample Selection
  7. Integration with microcalibrate
  8. For Contributors 💻
  9. Repository
  10. Current Implementation
  11. Key Concepts
  12. Usage in PolicyEngine
  13. Temperature Scheduling
  14. L0L2 Combined Penalty
Ships with 1 file
  • metadata.json
Commands it runs
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
More from claude-skill-registry
All skills →
About this skill
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.

Keep going