classification-regression
Train, evaluate, serialize, and apply pyAudioAnalysis sklearn-backed audio classifiers and regressors.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- classification-regression
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Train, evaluate, serialize, and apply pyAudioAnalysis sklearn-backed audio classifiers and regressors.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md7.7 KB
- 参考文档references/model-artifacts.md4.6 KB
- 参考文档references/troubleshooting.md6.8 KB
- 参考文档references/workflows.md6.2 KB
- 脚本scripts/classification_smoke.py12.0 KB
03 SKILL.md 正文
classification-regression
Use this sub-skill when the task is to train, evaluate, serialize, load, or apply pyAudioAnalysis audio classifiers or regression models backed by scikit-learn-style estimators and the package's in-module kNN wrapper.
Read first
references/api-reference.mdfor exact Python API signatures, supported model identifiers, return values, and side effects.references/workflows.mdfor end-to-end classifier and regression workflows that keep model outputs isolated.references/model-artifacts.mdbefore moving, reusing, or deleting trained model files.references/troubleshooting.mdwhen training produces no model, inference returns-1, SMOTE fails, model types disagree, or serialized models behave differently across environments.scripts/classification_smoke.py --helpfor a bounded synthetic classifier smoke test.
Owns
- Folder-organized supervised audio classification: one class per input folder.
- Classifier training through
audioTrainTest.extract_features_and_train(...). - File and folder classification through
audioTrainTest.file_classification(...)or a small loop around it. - Held-out folder evaluation through
audioTrainTest.evaluate_model_for_folders(...). - Audio regression training through
audioTrainTest.feature_extraction_train_regression(...)and inference throughaudioTrainTest.file_regression(...). - Model artifact naming, compatibility, and cleanup for these classifiers/regressors.
Route elsewhere
- Raw short-term or mid-term feature matrix generation belongs to the
feature-extractionsub-skill. - Time segmentation, HMMs, diarization, and segment-level classification belong to the
segmentation-diarizationsub-skill. - Full command-line syntax catalogs and legacy script execution details belong to the
cli-and-iosub-skill. - Visualization-only tasks belong outside this sub-skill except for the optional plots produced by classifier evaluation.
Operating defaults
Prefer CPU-only package APIs:
from pyAudioAnalysis import audioTrainTest as aT
Keep trained model prefixes under an explicit project output directory, use unique model names per experiment, set plot=False in headless evaluation, and treat pickle model files as trusted-environment artifacts only.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).