neural-prophet
Use NeuralProphet for interpretable time-series forecasting with fit/predict, components, uncertainty, plotting, save/load, and Prophet migration workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- neural-prophet
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use NeuralProphet for interpretable time-series forecasting with fit/predict, components, uncertainty, plotting, save/load, and Prophet migration workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-overview.md2.5 KB
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json332 B
- 参考文档references/troubleshooting.md2.6 KB
- 脚本scripts/check_neuralprophet_install.py2.6 KB
03 SKILL.md 正文
NeuralProphet repo skill
Use this skill when a task involves the Python package neuralprophet / NeuralProphet: Prophet-like time-series forecasting, ds/y dataframes, forecast horizons, trend/seasonality/autoregression/regressor/event components, global multi-series models, uncertainty intervals, plotting, serialization, or TorchProphet migration.
First checks
Install from PyPI for normal use:
python -m pip install neuralprophet
python -c "from neuralprophet import NeuralProphet; print(NeuralProphet)"
For this version, prefer Python supported by the package metadata (>=3.9,<3.13). If imports or fitting fail, read references/troubleshooting.md; known practical compatibility fixes include pandas<3 and setuptools<81 for the verified source snapshot.
Run the bundled diagnostic when the user's environment is uncertain:
python scripts/check_neuralprophet_install.py
Use --check-cuda only when the user explicitly needs CUDA verification. Core workflows are CPU-capable.
Route map
| User intent | Load |
|---|---|
Quickstart forecasting, dataframe validation, fit, predict, future periods, yhat* columns |
sub-skills/core-forecasting/SKILL.md |
| Trend, changepoints, seasonality, autoregression, lagged/future regressors, events, holidays, global/local multi-series modeling | sub-skills/components-and-exogenous/SKILL.md |
| Train/validation/test splits, cross-validation, metrics, quantile regression, conformal prediction, uncertainty evaluation | sub-skills/evaluation-and-uncertainty/SKILL.md |
| CLI/version, logging, seeding, plotting backends, optional extras, save/load, accelerators, TorchProphet/Prophet migration | sub-skills/operations-and-migration/SKILL.md |
Shared references
- package-overview.md gives the package purpose, top-level imports, data model, install notes, and workflow map.
- troubleshooting.md covers cross-cutting import, dependency, data, optional-extra, and backend failures.
- repo-provenance.md records the source snapshot used to build this skill; read it before deciding whether to refresh the skill for a changed checkout.
- repo-routing-metadata.json is structured router metadata for managed import tooling.
Common package pattern
import pandas as pd
from neuralprophet import NeuralProphet, set_log_level
set_log_level("ERROR")
df = pd.DataFrame({"ds": timestamps, "y": values})
model = NeuralProphet(epochs=10, accelerator="cpu")
metrics = model.fit(df, freq="D")
future = model.make_future_dataframe(df, periods=30, n_historic_predictions=True)
forecast = model.predict(future)
Add components before fit, validate all required columns before prediction, and keep explicit frequency strings for irregular or calendar-sensitive data.
Do not use this skill when
- The task is only generic PyTorch Lightning training internals with no NeuralProphet forecasting API.
- The task is general repository maintenance or contribution work rather than using the package.
- The user needs another forecasting library with incompatible data schema or model APIs.
- The task requires benchmark-scale training, external tutorial downloads, credentials, services, or hardware-specific claims that have not been separately authorized and verified.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).