技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
nupic-legacy【数据与研究】Use NuPIC legacy HTM algorithms, OPF prediction, Network API pipelines, swarming search definitions, and data/config validation in Python 2.7-era runtimes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves NuPIC legacy, Hierarchical Temporal Memory (HTM), streaming anomaly/prediction workflows, SpatialPooler, TemporalMemory, SDRClassifier, OPF ModelFactory, Network API regions, run_swarm, or NuPIC three-header-row CSV/model-parameter files.
NuPIC legacy is maintenance-mode, Python 2.7-era software. Start by checking the runtime before debugging workflow code.
nupic, nupic.bindings, numpy, capnp/pycapnp, dependency conflicts, or broad runtime setup.Minimal package smoke command from this skill root:
python scripts/check_nupic_legacy_env.py
Expected runtime for execution tasks: Python 2.7, installed nupic, compiled nupic.bindings, legacy-compatible NumPy, and pycapnp/Cap'n Proto where serialization is involved. Do not treat Python 3 import or syntax failures as surprising unless the user is explicitly porting NuPIC.
| User task or signal | Go to | Why |
|---|---|---|
Direct encoders, SpatialPooler, TemporalMemory, SDRClassifier, anomaly score, anomaly likelihood, active columns/cells | sub-skills/htm-algorithms/ | Covers direct HTM algorithm APIs, signatures, array shapes, and tiny smoke checks. |
CSV stream headers, FileRecordStream, field metadata, model parameter YAML/JSON, aggregation, configuration overrides | sub-skills/data-and-configuration/ | Validates and explains input/config artifacts shared by OPF, Network, and swarming. |
OPF ModelFactory, HTMPredictionModel, model.run, result.inferences, experiment directories, checkpoints | sub-skills/opf-prediction/ | Covers high-level prediction workflows, inference keys, experiment runner guidance, and checkpoint use. |
Network, RecordSensor, SPRegion, TMRegion, classifier regions, region links, custom PyRegion | sub-skills/network-api/ | Covers Network API construction, linking, region specs, output extraction, and custom-region skeletons. |
run_swarm, permutations_runner, search_def.json, generated model_0, MySQL/ClientJobs errors | sub-skills/swarming/ | Covers safe search-definition linting, CLI/action options, service requirements, and using generated OPF models. |
Use htm-algorithms when the user wants to encode values, run SP/TM, classify active cells, or compute anomaly likelihood without OPF. The bundled smoke is:
python sub-skills/htm-algorithms/scripts/algorithm_smoke.py --mode all --records 20
Use data-and-configuration first to validate the NuPIC CSV and model parameters, then opf-prediction to create the model and extract multiStepBestPredictions / multiStepPredictions. Useful checks:
python sub-skills/data-and-configuration/scripts/validate_nupic_csv.py data.csv --predicted-field consumption
python sub-skills/opf-prediction/scripts/opf_prediction_smoke.py
Use network-api when the user asks for explicit regions and links rather than OPF. Start with:
python sub-skills/network-api/scripts/network_smoke.py --inspect-region-types
Use swarming for search_def.json authoring and hypersearch run planning. Lint before running anything service-backed:
python sub-skills/swarming/scripts/swarm_config_lint.py search_def.json --summary
Full swarming can require MySQL-compatible service configuration and may be expensive; never use it as a first install smoke.