/kaggle-tools:kaggle-audio-bioacousticsfrom kaggle-tools
Provides battle-tested strategies for Kaggle audio/bioacoustics competitions (BirdCLEF-style): row_id parsing, pretrained backbones (Perch, BirdNET), per-species probes, temporal models, mel spectrograms, CV/LB gap analysis, and CPU inference optimization.
Ships in kaggle-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Task: multi-label species presence per 5 s window of long soundscapes; metric usually column-wise macro ROC-AUC (columns without positives skipped). BirdCLEF 2026 path: 0.758 (EffNet) → 0.904 (Perch v2) → 0.927 (+ProtoSSM) → 0.940 (two arms, rank-blend).
from kaggle_tools.audio import parse_row_id, window_row_ids, frame_windows
stem, end_sec = parse_row_id("BC2026_Test_0001_S05_20250227_010002_5") # window 0 = [0, 5) s
Return a separate vector per row_id. Averaging over the file raises no error but
costs ~0.1 AUC. Default/prior = uniform 1/n_species (matches sample_submission).
SR, WIN = 32_000, 160_000 # 5 s
N_FFT, HOP, N_MELS, FMIN, FMAX = 1024, 512, 128, 50, 14_000
mel = amp_to_db(mel_transform(wave).clamp(min=1e-10)) # clamp BEFORE dB → no NaN
mel = (mel - mel.min()) / (mel.max() - mel.min() + 1e-8) # per-window min-max
PANNs/CNN14: use bfloat16 (fp16 overflows from batch 1), clip grads (max_norm=5).
Focal loss (γ=2) or inverse-frequency sampling; soundscape background injection
(p≈0.5) to bridge clip→soundscape shift; mixup with rare-weighted partners; EMA.
Merge prior-year data for overlapping species (per-row audio_dir column).
Split at file level (MultilabelStratifiedKFold or
kaggle_tools.cv.rare_safe_folds with file groups); pin species with <5 clips to
train. Expect a large clip-CV → soundscape-LB gap (0.94 → 0.75 for a clip model):
domain shift, zero-sample species (AUC≈0.5), geography. Validate on labelled
train soundscapes whenever they exist.
frame_windows) through the model; never loop
per-window on CPU with librosa.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/kaggle-code-competitionsUse when working on any Kaggle code competition — notebook submission, data paths, offline packages, GPU/accelerator choice, kernel push workflow, time limits, or debugging "Submission Scoring Error", TIMEOUT and NO_SCORE/kaggle-competition-playbookUse when starting, planning or steering any Kaggle competition — reading the metric, choosing CV, deciding which experiment to run next, interpreting CV/LB gaps, ensembling, and managing submission/GPU quota/kaggle-leaderboard-analysisCompare Kaggle public and private team positions, or plot an account's competition history as top percentages by year with readable paginated figures. Use for leaderboard shakeups, finishing positions, and competition progress reports.npx claudepluginhub yassinealouini/kaggle-tools --plugin kaggle-toolsOther plugins' skills for the same job