技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
api-v2-workflows【数据与研究】Guide experimental PyTorch Forecasting API-v2 D1/D2/M/P workflows, package wrappers, metadata flow, and beta troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill only when a task explicitly asks for the experimental PyTorch Forecasting API-v2 stack in pytorch-forecasting 1.8.0: D1 TimeSeries, D2 EncoderDecoderTimeSeriesDataModule or TslibDataModule, direct M-layer Lightning models, or P-layer package wrappers with fit()/predict().
Stability warning: API-v2 is active-development/beta. Do not present it as the stable production interface; for production forecasting workflows route to the v1 sub-skills below.
TimeSeries datasets from pandas DataFrames and checking the metadata that flows into v2 datamodules.EncoderDecoderTimeSeriesDataModule and TslibDataModule, creating datamodule_cfg, and validating metadata before model construction.TFT, DLinear, Samformer, TIDE, TimeXer, DecoderMLP_v2, and SOFTS with PyTorch Lightning.TFT_pkg_v2, DLinear_pkg_v2, Samformer_pkg_v2, TIDE_pkg_v2, TimeXer_pkg_v2, DecoderMLP_pkg_v2, and SOFTS_pkg_v2 with model_cfg, trainer_cfg, datamodule_cfg, fit(), predict(), return_info, and checkpoint metadata.TimeSeriesDataSet, from_dataset(), and to_dataloader() belong in ../data-pipeline/SKILL.md..from_dataset() model construction, Lightning training, checkpointing, interpretation, and prediction belong in ../forecasting-models/SKILL.md.../custom-components/SKILL.md.references/api-v2-layered-workflows.md when you need the D1/D2/M-layer concepts, TimeSeries and datamodule recipes, metadata keys, direct Lightning model construction, and v1-to-v2 translation guidance.references/v2-package-reference.md when you need the P-layer config-driven fit()/predict() workflow, model/package names, compatibility table, checkpoint behavior, and return_info usage.references/troubleshooting.md when beta API behavior fails due to missing metadata, incompatible datamodule/model pairing, config key mistakes, short series, fragile return_info, or package-layer lifecycle mistakes.scripts/tiny_v2_data_smoke.py to create a synthetic DataFrame, instantiate API-v2 TimeSeries, and optionally build/setup an API-v2 datamodule without training any model.metadata=data_module.metadata into the model.