cas-bigdatalab/piflow/weighted-sampler
加权采样算子。读取JSONL记录,按数值型权重字段执行随机采样,支持有放回和无放回两种模式。当用户提到加权抽样、按权重抽样、优先级采样、重要性重采样等需求时使用此skill。即使用户没有明确说出“加权采样”,只要任务涉及按记录权重选择样本,就应该使用此skill。不负责按类别分层均衡、普通随机采样或文本内容过滤。
Agent skill · version 0.0.0-master.1794520988.gad8d010 · from cas-bigdatalab/piflow
Install
npx yarkr-cli add skill:cas-bigdatalab/piflow/weighted-samplerWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:cas-bigdatalab/piflow/weighted-sampler
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:cas-bigdatalab/piflow/weighted-samplerOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:cas-bigdatalab/piflow/weighted-samplerWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.