model-development
Use this sub-skill when the task is about choosing a BasicTS model family, understanding a model config, or authoring a new model that BasicTS can run.
Typical triggers
- "Which BasicTS model should I use?"
- "How do I implement a custom BasicTS model?"
- "What does a BasicTS model need to return?"
- "How do auxiliary losses work?"
- "Check whether this model matches the BasicTS contract"
What this sub-skill covers
- built-in model families under
src/basicts/models/
- model config classes such as
DLinearConfig, iTransformerConfig, TimesNetConfig, and PatchTSTConfig
- the BasicTS forward contract for
inputs, optional timestamps, masks, and training-step metadata
- output expectations for prediction tensors, dictionaries, and optional
loss or auxiliary-loss keys
- CPU-side contract inspection for custom models
Read these bundled references first
references/model-catalog.md for model families, task support, and entry-point names.
references/custom-model-contract.md for the forward/output contract and custom model checklist.
references/troubleshooting.md for shape, signature, and callback failures.
scripts/check_model_contract.py for a safe inspection helper.
Route here when the user asks for
- built-in model selection for forecasting, classification, or imputation
- the difference between
*_ForForecasting, *_ForClassification, and *_ForReconstruction
- how to implement a custom model class that BasicTS can train or evaluate
- how to inspect a model's accepted inputs or output structure
- how to wire auxiliary losses from the model into the BasicTS callback path
Route elsewhere when the user asks for
- dataset folders, raw arrays, or conversion scripts →
data-preparation
- launcher commands, configs, or checkpoint usage →
training-evaluation
- callbacks, metrics, scalers, taskflows, or config serialization beyond the model contract →
pipeline-extension
Working guidance
- Confirm the target task family first.
- Pick a built-in model wrapper that matches the task if one exists.
- Make sure the model's
forward accepts inputs and any extra keys it needs.
- Return a tensor or a dictionary with
prediction.
- If the model computes its own loss, document how that interacts with the BasicTS runner and callbacks.
When to read the helper script
Use scripts/check_model_contract.py when you want to inspect a model class from the installed package, print its forward signature, or run a small dummy forward check.
Why this sub-skill exists
BasicTS model usage is broader than a single model family. This sub-skill keeps the built-in catalog and the custom model contract separate from dataset and training concerns so future agents can answer model questions quickly and accurately.
1---2name: "model-development"3description: "Routes BasicTS built-in model selection and custom model4 authoring, including forward contracts, config classes, and auxiliary-loss5 behavior."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/model-development9 disco-role: operating10license: Apache 2.011---1213# model-development1415Use this sub-skill when the task is about choosing a BasicTS model family, understanding a model config, or authoring a new model that BasicTS can run.1617## Typical triggers1819- "Which BasicTS model should I use?"20- "How do I implement a custom BasicTS model?"21- "What does a BasicTS model need to return?"22- "How do auxiliary losses work?"23- "Check whether this model matches the BasicTS contract"2425## What this sub-skill covers2627- built-in model families under `src/basicts/models/`28- model config classes such as `DLinearConfig`, `iTransformerConfig`, `TimesNetConfig`, and `PatchTSTConfig`29- the BasicTS forward contract for `inputs`, optional timestamps, masks, and training-step metadata30- output expectations for prediction tensors, dictionaries, and optional `loss` or auxiliary-loss keys31- CPU-side contract inspection for custom models3233## Read these bundled references first3435- `references/model-catalog.md` for model families, task support, and entry-point names.36- `references/custom-model-contract.md` for the forward/output contract and custom model checklist.37- `references/troubleshooting.md` for shape, signature, and callback failures.38- `scripts/check_model_contract.py` for a safe inspection helper.3940## Route here when the user asks for4142- built-in model selection for forecasting, classification, or imputation43- the difference between `*_ForForecasting`, `*_ForClassification`, and `*_ForReconstruction`44- how to implement a custom model class that BasicTS can train or evaluate45- how to inspect a model's accepted inputs or output structure46- how to wire auxiliary losses from the model into the BasicTS callback path4748## Route elsewhere when the user asks for4950- dataset folders, raw arrays, or conversion scripts → `data-preparation`51- launcher commands, configs, or checkpoint usage → `training-evaluation`52- callbacks, metrics, scalers, taskflows, or config serialization beyond the model contract → `pipeline-extension`5354## Working guidance55561. Confirm the target task family first.572. Pick a built-in model wrapper that matches the task if one exists.583. Make sure the model's `forward` accepts `inputs` and any extra keys it needs.594. Return a tensor or a dictionary with `prediction`.605. If the model computes its own loss, document how that interacts with the BasicTS runner and callbacks.6162## When to read the helper script6364Use `scripts/check_model_contract.py` when you want to inspect a model class from the installed package, print its forward signature, or run a small dummy forward check.6566## Why this sub-skill exists6768BasicTS model usage is broader than a single model family. This sub-skill keeps the built-in catalog and the custom model contract separate from dataset and training concerns so future agents can answer model questions quickly and accurately.