计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
model-operations【效率与协作】Operate PyOD model persistence, thresholding, score combination, optional extras, and validation safely.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a PyOD task is about operating fitted detectors after or around training: saving and loading models, validating recovered artifacts, choosing non-contamination thresholders, combining multiple detector scores, enabling optional operational extras, and diagnosing model-operation failures.
Route detector selection, baseline fit/predict recipes, and tabular model-family choice to classic-detectors or automated-lifecycle. Route graph, time-series, embedding, audio, and deep-backend constraints to specialized-modalities before applying persistence or operational validation guidance here.
pyod.utils.persistence.load(..., trusted=True) or compat_load(..., trusted=True) only for artifacts from a trusted training pipeline, registry, or owner. trusted=True is an acknowledgement, not a scan or sandbox.pyod.utils.persistence.save / load for new artifacts. Raw joblib.dump / joblib.load is a fallback only when you intentionally need the raw format and accept the missing envelope metadata.combo, pythresh, suod, or xgboost; failures in those areas are usually dependency-scope failures, not detector logic failures.save, load, compat_load, trust boundaries, sklearn Tree dtype compatibility, metadata, strict mode, and raw joblib caveats.pyod.models.thresholds, PyThresh-backed contamination objects, pyod.models.combination, required score shapes, and validation checks.Run the bundled script from any working directory in an environment with PyOD installed:
python scripts/persistence_smoke.py --help
python scripts/persistence_smoke.py --json
A passing run proves the local PyOD install can perform a trusted temporary persistence round-trip for a classic detector. It does not prove that an arbitrary external artifact is safe, compatible, or semantically valid.