data-and-cli
Prepare Time-Series-Library data layouts, choose safe run.py flags, validate local files, and understand checkpoints, result folders, and smoke-test commands.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- data-and-cli
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Prepare Time-Series-Library data layouts, choose safe run.py flags, validate local files, and understand checkpoints, result folders, and smoke-test commands.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/cli-and-outputs.md2.9 KB
- 参考文档references/data-layouts.md2.6 KB
- 参考文档references/troubleshooting.md2.1 KB
03 SKILL.md 正文
TSLib Data and CLI
Use this sub-skill when the task is about getting a TSLib command to start correctly: local data files, run.py flags, dataset names, CPU/GPU flags, smoke checks, output locations, or confusing path/download behavior.
Route Here
- Choose or validate
--task_name,--data,--root_path,--data_path,--features,--target, and--freq. - Prepare a local
customCSV, ETT-style CSV, M4 folder, anomaly folder, or UEA.tsfolder. - Debug Hugging Face fallback/download surprises when local files are missing.
- Interpret
checkpoints/,results/,test_results/,m4_results/, and result text file locations. - Decide whether to use
--no_use_gpu,--gpu,--gpu_type,--use_multi_gpu, orCUDA_VISIBLE_DEVICESfor a safe check. - Build a tiny smoke-test dataset before routing to a task-specific sub-skill.
Reroute
- Long-term, short-term/M4, exogenous, or zero-shot forecasting details: use
../forecasting/SKILL.md. - Imputation, anomaly detection, or classification recipes: use
../imputation-anomaly-classification/SKILL.md. - Model catalog, optional Mamba/LTSM dependencies, augmentation flags, or adding a model: use
../foundation-models-and-customization/SKILL.md. - Cross-cutting installation failures: start with
../../references/installation-and-environment.mdand../../references/troubleshooting.md.
Fast Preflight
From this sub-skill directory, point helpers at the user's TSLib checkout:
python ../../scripts/check_tslib_environment.py --repo-root /path/to/Time-Series-Library --check-torch --check-core-imports
python ../../scripts/create_tiny_tslib_dataset.py --output /path/to/Time-Series-Library/dataset/tiny-custom/tiny.csv
python scripts/validate_tslib_data.py \
--task long_term_forecast --data custom \
--root-path /path/to/Time-Series-Library/dataset/tiny-custom \
--data-path tiny.csv --target OT
Then run a task smoke from the TSLib checkout with --no_use_gpu, --train_epochs 1, --num_workers 0, and small windows before scaling up.
Data Routing Rules
- Match
--task_nameto a loader-compatible--datavalue. For example,classificationnormally uses--data UEA, while anomaly detection uses one ofPSM,MSL,SMAP,SMD, orSWAT. - For local CSV forecasting/imputation, make sure
--root_pathpoints to the directory and--data_pathis the filename. If the file is absent, the loader may try a Hub dataset whose config name is derived from the filename. - For
custom, include adatecolumn and a numeric target column.--targetdefaults toOT. - For UEA,
--model_idis the dataset name used to locate<DatasetName>_TRAIN.tsand<DatasetName>_TEST.ts. - For benchmark scripts, review and rewrite hard-coded
CUDA_VISIBLE_DEVICESand dataset folders before running.
References and Helpers
references/data-layouts.mddetails local files expected for CSV, M4, anomaly, and UEA loaders.references/cli-and-outputs.mdexplains required flags, GPU controls, setting strings, and output folders.references/troubleshooting.mdmaps common path, parser, download, and output problems to fixes.scripts/validate_tslib_data.pyperforms file/header/layout checks without training or downloading data.../../references/cli-arguments.mdis the shared root CLI reference.../../references/data-formats.mdis the shared cross-task data-format reference.
Avoid
- Do not run full benchmark shell scripts as a preflight. Render a smaller command or use the forecasting command builder.
- Do not assume a missing local file is harmless; it can trigger network fallback and fail with a misleading Hub error.
- Do not let CUDA defaults choose the device for a smoke test; add
--no_use_gpuunless GPU behavior is the point of the test. - Do not treat tiny synthetic data as benchmark evidence. It validates plumbing only.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.