AGENT SKILL

persistence-update

Persist, reload, update, and forecast pmdarima ARIMA models and pipelines safely, including transformer state, exogenous alignment, and version compatibility.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
persistence-update
license
MIT
metadata
{ "disco-role": "operating" }
description
Persist, reload, update, and forecast pmdarima ARIMA models and pipelines safely, including transformer state, exogenous alignment, and version compatibility.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Persistence and update

Use this route when a fitted ARIMA, AutoARIMA, or pmdarima.pipeline.Pipeline must be serialized, reloaded, refreshed with new observations, or forecast after a refresh. Keep the artifact coupled to the producer environment and treat pickle/joblib deserialization as a trusted-code operation.

Route

  1. Establish the fitted object's class and fitted state, pmdarima/Python and dependency versions, transformer configuration, exogenous schema, training row count/range, forecast-horizon contract, and artifact checksum. Read the API reference for source-level contracts.
  2. Fit the complete pipeline, including endogenous and exogenous transformers, and smoke-test predict before persistence. Keep y and every X row in temporal alignment; for forecasts, provide one future X row per period and the same feature width.
  3. Persist only a trusted object with pickle or joblib. Stage writes in a trusted temporary path on the same filesystem, validate a same-environment reload and known-shape forecast, then atomically replace the artifact of record. Never load an untrusted or arbitrary path.
  4. For a small, ordered batch whose schema and model structure remain valid, pass raw new observations to Pipeline.update(y, X=..., maxiter=...) or ARIMA.update(...). Pipeline.update mutates the fitted pipeline but returns the final estimator in pmdarima 2.1.1. Preserve fitted transformer semantics: updatable stages advance, ordinary stages only transform, and the final ARIMA receives aligned transformed data.
  5. Prefer a clean refit (and possibly order search) after drift, corrected history, schema/feature meaning changes, changed transformation domains or seasonality, repeated updates, or non-convergence. An update is not a new order search or a substitute for validation.

Read workflows for fit/predict/update, trusted round-trip, metadata, atomic replacement, refit decisions, and alignment. Read troubleshooting before recovering load, exogenous, transformer, or optimizer failures.

Bundled checks

  • scripts/pipeline_roundtrip.py fits a deterministic small Box-Cox pipeline, records a compact version/schema manifest, stages and validates its own temporary artifact, atomically promotes it, reloads it, and asserts forecast shape and equality.
  • scripts/update_forecast.py fits a small Box-Cox-plus-Fourier pipeline, updates it with raw observations using bounded maxiter, asserts Fourier state advancement and forecast shape, then validates and round-trips the artifact it created.

Both scripts accept --help, work from arbitrary current directories, use local deterministic data, default to temporary paths, and never accept an input artifact path.

Provenance boundary

This route describes pmdarima 2.1.1 source behavior at commit 4c2dfccb28f64d2c00a5e10b59c1d1a3e16576a9. Verify the installed package and dependency versions before applying any persisted artifact; an inspection environment can legitimately report a different development version.

Local references

  • API reference — signatures, state, shape, transformer, and persistence contracts.
  • Workflows — bounded operational sequences and the atomic promotion policy.
  • Troubleshooting — installation, trust, compatibility, alignment, domain, and update recovery.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351