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

informer2020

informer2020

【效率与协作】Use for Informer2020 long-sequence time-series forecasting training, evaluation, custom CSV preparation, and prediction workflows.

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

技能说明

GitHub

name: informer2020 description: "Use for Informer2020 long-sequence time-series forecasting training, evaluation, custom CSV preparation, and prediction workflows." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Informer2020

Use this repo skill when a task involves the Informer2020 PyTorch implementation for long-sequence time-series forecasting: training/testing Informer or InformerStack, reproducing benchmark-style runs, preparing a custom time-series CSV, or running future prediction.

This is a source-style research repository, not a normal installable package. Treat the generated skill as the operating manual and use the bundled helpers below instead of reopening or executing original repo scripts directly.

First checks

  1. Confirm the checkout contains the Informer2020 source modules (models, data, exp, utils) and the forecasting launcher.
  2. Prepare a Python environment with PyTorch, NumPy, pandas, and the documented scientific stack. For exact historical reproduction, prefer the repository's legacy pins; for smoke validation, run the bundled helpers first.
  3. Run a minimal import check from the checkout or with the checkout on PYTHONPATH:
python - <<'PY'
from models.model import Informer, InformerStack
from data.data_loader import Dataset_Custom, Dataset_Pred
print('Informer2020 imports OK')
PY
  1. For a safe custom-data proof, generate and validate a tiny CSV before any long training run.

Route by task

User taskRead
Train/test Informer or InformerStack, choose attention/model lengths, adapt benchmark presets, inspect metrics/checkpoints, or debug runtime training failuressub-skills/training-and-evaluation/SKILL.md
Prepare a custom CSV, choose S/M/MS, validate target/cols/freq, run do_predict, or debug data-loader/prediction output issuessub-skills/custom-data-and-prediction/SKILL.md
Set up dependencies, understand legacy version pins, or decide CPU/CUDA behaviorreferences/install.md
Debug cross-cutting install, import, data, backend, or helper-script failuresreferences/troubleshooting.md
Check source snapshot and evidence paths before deciding whether the skill is stalereferences/repo-provenance.md

Bundled helpers

Use the helpers for validation and smoke checks; use the sub-skills for larger runs and task-specific interpretation.

Key behavior to remember

  • The forecasting launcher trains and tests for every repeat; prediction is an extra branch enabled by do_predict.
  • Built-in dataset names override CSV file name, target, and tensor widths. Custom data requires you to set dimensions yourself.
  • M, S, and MS change both loader behavior and output width.
  • The code auto-selects CUDA when visible. To force CPU reliably, hide CUDA or use the smoke helper's CPU backend option rather than relying on a string False value.
  • Output directories are fingerprinted by the run setting. Checkpoints, metrics, test predictions, and future predictions are different files.

Avoid this skill when

  • The task is about a different forecasting library or a general time-series theory question with no Informer2020 implementation surface.
  • The task is repository maintenance unrelated to forecasting workflows; use a repository-maintenance skill instead.
  • The user needs a production forecasting service, model registry, or MLOps deployment stack rather than this research implementation.
我的收藏