技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
flow-forecast【数据与研究】Repository operating skill for using Flow Forecast's flood_forecast package for time-series forecasting, data preparation, training, inference, evaluation, and hydrology-oriented advanced models.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves the Flow Forecast / flood_forecast Python package: deep time-series forecasting, classification/anomaly detection loaders, PyTorch model training, saved-model inference, forecast evaluation, Plotly/SHAP explanations, catchment embeddings, Neural ODEs, or differentiable GR4 hydrology models.
This skill is self-contained. Do not depend on the original repository checkout for runtime instructions. If a current checkout differs from the provenance snapshot, refresh this skill before relying on API details.
python -m pip install flood-forecast.flood-forecast.flood_forecast.flood_forecast.time_model.PyTorchForecast.python -m flood_forecast.trainer -p config.json.python -m flood_forecast.meta_train -p config.json.flood_forecast.deployment.inference.InferenceMode.Before using detailed workflows, run the bundled environment/import check when practical:
python scripts/check_flow_forecast_env.py --show-models
The check imports the package, reports PyTorch CPU/CUDA/MPS availability, and lists registry keys without reading any source checkout.
| User asks for... | Read next | Why |
|---|---|---|
CSV schema checks, forecast_history/forecast_length, temporal features, interpolation, series-id, classification, variable-length, USGS/ASOS/GCS data caveats | data-preparation | Owns loaders and preprocessing that feed training and inference. |
Build or validate a JSON training config, choose model/loss/optimizer/scaler names, run or resume PyTorchForecast, use DA-RNN/NARX training, or debug device/checkpoint behavior | training | Owns config-driven training and evaluation setup. |
| Load saved weights/configs, forecast from a date, run classification inference, compute metrics, create confidence interval plots, TorchScript export, or SHAP explanations | inference | Owns prediction/evaluation/deployment-facing APIs. |
| Use catchment embeddings, contrastive pretraining, CrossViViT, meta-data fusion, Neural ODEs, GR4 dynamics, HybridGR4, or hydrology-specific losses | multimodal-physics | Owns advanced multimodal and physics/hybrid model surfaces. |
| Installation/import, dependency pins, optional services, backend selection, W&B/GCS credentials, or broad troubleshooting | references/troubleshooting.md | Cross-cutting failure modes shared by multiple workflows. |
When a task spans routes, load them in data-flow order: data-preparation → training/model overview → inference; add multimodal-physics only for catchment/ODE/GR4 work.
device: "auto", but accelerator evidence is optional for most package workflows.model_name, criterion, optimizer, scaler, or decoder is available. The registry is string-key based and misspellings fail at runtime.