ai-ml-timeseries by vasilyu1983/ai-agents-public
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill ai-ml-timeseries现代最佳实践(2026年1月):
此技能为预测提供可操作、即复制粘贴的工作流,涵盖最新进展:时间序列特定的探索性数据分析、时间验证、滞后/滚动特征、模型选择、多步预测、回测、生成式人工智能(Chronos、TimesFM)以及带有漂移监控的生产部署。
它侧重于实践性的预测执行,而非理论。
当用户询问实践性时间序列预测时,Claude 应调用此技能,例如:
如果用户询问通用机器学习建模、部署或基础设施,请优先使用:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果用户询问LLM/RAG/搜索,请优先使用:
| 任务 | 工具/框架 | 命令 | 何时使用 |
|---|---|---|---|
| 时间序列探索性数据分析与分解 | Pandas, statsmodels | seasonal_decompose(), df.plot() | 识别趋势、季节性、异常值 |
| 滞后/滚动特征 | Pandas, NumPy | df.shift(), df.rolling() | 为机器学习模型创建时间特征 |
| 模型训练(基于树) | LightGBM, XGBoost | lgb.train(), xgb.train() | 具有季节性、协变量的表格时间序列 |
| 深度学习(序列模型) | Transformers, RNNs | model.forecast() | 长期依赖、复杂模式 |
| 事件预测 | 二元/事件时间模型 | 时间标签 + 滚动验证 | 稀疏事件和警报 |
| 回测 | 自定义滚动窗口 | for window in windows: train(), test() | 无数据泄露的时间验证 |
| 指标评估 | scikit-learn, 自定义 | mean_absolute_error(), MAPE, MASE | 多步预测准确性 |
| 生产部署 | MLflow, Airflow | 调度流水线 | 自动化重训练、漂移监控 |
User needs time series forecasting for: [Data Type]
├─ Strong Seasonality?
│ ├─ Simple patterns? → LightGBM with seasonal features
│ ├─ Complex patterns? → LightGBM + Prophet comparison
│ └─ Multiple seasonalities? → Prophet or TBATS
│
├─ Long-term Dependencies (>50 steps)?
│ ├─ Transformers (TimesFM, Chronos) → Best for complex patterns
│ └─ RNNs/LSTMs → Good for sequential dependencies
│
├─ Event Forecasting (binary outcomes)?
│ └─ Temporal classification / survival modelling → validate with time-based splits
│
├─ Intermittent/Sparse Data (many zeros)?
│ ├─ Croston/SBA → Classical intermittent methods
│ └─ LightGBM with zero-inflation features → Modern approach
│
├─ Multiple Covariates?
│ ├─ LightGBM → Best with many features
│ └─ TFT/DeepAR → If deep learning needed
│
└─ Explainability Required (healthcare, finance)?
├─ LightGBM → SHAP values, feature importance
└─ Linear models → Most interpretable
应做
应避免
LightGBM 时间序列模式(基于特征的预测最佳实践)
对于相邻主题,请参考这些技能:
请参阅 data/sources.json 获取精选的网络资源,包括:
对于 Claude:
关键原则: 时间序列预测是关于时间结构的,而非独立同分布假设。使用时间验证,避免未来数据泄露,并根据预测范围长度和数据特征选择模型。
每周安装次数
130
代码仓库
GitHub 星标数
46
首次出现
2026年1月22日
安全审计
安装于
gemini-cli113
opencode112
codex109
cursor108
github-copilot106
kimi-cli95
Modern Best Practices (January 2026) :
This skill provides operational, copy-paste-ready workflows for forecasting with recent advances: TS-specific EDA, temporal validation, lag/rolling features, model selection, multi-step forecasting, backtesting, generative AI (Chronos, TimesFM), and production deployment with drift monitoring.
It focuses on hands-on forecasting execution , not theory.
Claude should invoke this skill when the user asks for hands-on time series forecasting , e.g.:
If the user is asking about general ML modelling, deployment, or infrastructure , prefer:
If the user is asking about LLM/RAG/search , prefer:
| Task | Tool/Framework | Command | When to Use |
|---|---|---|---|
| TS EDA & Decomposition | Pandas, statsmodels | seasonal_decompose(), df.plot() | Identifying trend, seasonality, outliers |
| Lag/Rolling Features | Pandas, NumPy | df.shift(), df.rolling() | Creating temporal features for ML models |
| Model Training (Tree-based) | LightGBM, XGBoost | lgb.train(), xgb.train() |
User needs time series forecasting for: [Data Type]
├─ Strong Seasonality?
│ ├─ Simple patterns? → LightGBM with seasonal features
│ ├─ Complex patterns? → LightGBM + Prophet comparison
│ └─ Multiple seasonalities? → Prophet or TBATS
│
├─ Long-term Dependencies (>50 steps)?
│ ├─ Transformers (TimesFM, Chronos) → Best for complex patterns
│ └─ RNNs/LSTMs → Good for sequential dependencies
│
├─ Event Forecasting (binary outcomes)?
│ └─ Temporal classification / survival modelling → validate with time-based splits
│
├─ Intermittent/Sparse Data (many zeros)?
│ ├─ Croston/SBA → Classical intermittent methods
│ └─ LightGBM with zero-inflation features → Modern approach
│
├─ Multiple Covariates?
│ ├─ LightGBM → Best with many features
│ └─ TFT/DeepAR → If deep learning needed
│
└─ Explainability Required (healthcare, finance)?
├─ LightGBM → SHAP values, feature importance
└─ Linear models → Most interpretable
Do
Avoid
LightGBM TS Patterns (feature-based forecasting best practices)
Multi-Step Forecasting Patterns
For adjacent topics, reference these skills:
See data/sources.json for curated web resources including:
For Claude:
Key Principle: Time series forecasting is about temporal structure, not IID assumptions. Use temporal validation, avoid future leakage, and choose models based on horizon length and data characteristics.
Weekly Installs
130
Repository
GitHub Stars
46
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli113
opencode112
codex109
cursor108
github-copilot106
kimi-cli95
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装
LinkedIn内容创作指南:AI驱动的高互动帖子撰写技巧与结构公式
8,000 周安装
GitHub Copilot 重构计划工具 - 自动生成代码重构详细步骤与安全执行方案
8,200 周安装
Apple App Store 审核专家:AI 助手审查 iOS 应用代码与元数据,降低被拒风险
8,100 周安装
AI会议纪要生成技能:快速创建结构化内部会议记录,自动提取决策与行动项
8,100 周安装
Dataverse Python 生产级代码生成器 | 含错误处理、重试逻辑、OData优化
8,100 周安装
Pinia - Vue官方状态管理库:类型安全、支持Options/Composition API、TypeScript
8,200 周安装
| Tabular TS with seasonality, covariates |
| Deep Learning (Sequence models) | Transformers, RNNs | model.forecast() | Long-term dependencies, complex patterns |
| Event forecasting | Binary/time-to-event models | Temporal labeling + rolling validation | Sparse events and alerts |
| Backtesting | Custom rolling windows | for window in windows: train(), test() | Temporal validation without leakage |
| Metrics Evaluation | scikit-learn, custom | mean_absolute_error(), MAPE, MASE | Multi-horizon forecast accuracy |
| Production Deployment | MLflow, Airflow | Scheduled pipelines | Automated retraining, drift monitoring |