界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

preprocessing-and-utilities

preprocessing-and-utilities

【数据与研究】Routes numpy-ml preprocessing, tokenization, signal-processing, kernel, distance, graph, and data-structure utility tasks.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: preprocessing-and-utilities description: "Routes numpy-ml preprocessing, tokenization, signal-processing, kernel, distance, graph, and data-structure utility tasks." disable-model-invocation: true metadata: disco-role: operating license: GPL 3.0

Preprocessing and Utilities

Use this sub-skill when a task is about preparing arrays or using numpy-ml helper objects before a model workflow:

  • standardization, one-hot encoding, and feature hashing;
  • tokenization, vocabularies, TF-IDF, BPE, and Huffman coding;
  • DFT, DCT, MFCC, framing, interpolation, and signal windows;
  • kernels, distance metrics, priority queues, ball trees, samplers, graph helpers, and testing utilities.

First Checks

  1. Run the smoke helper for the exact method names and output shapes:

    python sub-skills/preprocessing-and-utilities/scripts/preprocessing_utils_smoke.py
    
  2. Read references/api-reference.md before using an encoder or utility whose method names differ from scikit-learn.

  3. Read references/workflows.md for tiny tabular, text, signal, kernel, and graph utility recipes.

  4. Read references/troubleshooting.md for unknown labels, hasher sparse/dense issues, MFCC/audio assumptions, and optional comparison dependency questions.

Route by Task

User asks forUse this route
standardize arrays or encode labelsgeneral preprocessing API/workflow.
hash feature dictionariesFeatureHasher.encode guidance.
tokenize or build text vocab/TF-IDFNLP preprocessing workflow.
compute DFT/DCT/MFCC/window functionsDSP and window workflow.
kernels, distances, BallTree, priority queue, graph helpersutility API/workflow.
fit a supervised, probabilistic, neural, or RL modelroute to the model sub-skill after preprocessing.

Operating Notes

  • OneHotEncoder uses transform / inverse_transform; do not assume fit_transform exists.
  • FeatureHasher uses encode on dictionaries or lists of dictionaries.
  • Utilities are intended for small explicit NumPy examples. Keep validation scripts deterministic and avoid downloads or large data.
我的收藏