executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
classificationGuides PyPOTS classification workflows for partially-observed time series, including labels, probability outputs, model selection, metrics, and optional Raindrop dependencies.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user needs class labels or class probabilities for partially-observed time-series samples.
classification_proba"predict_proba() or classify()"../../references/data-formats.md#classification for X and y.../../references/api-reference.md for result keys and classifier
helpers.../../references/model-overview.md#classification for model-family
choice.../../references/troubleshooting.md for optional GNN dependencies,
missing labels, and constructor drift.../cli/ for config-driven pypots-cli train, predict, evaluate,
recommend, or tune workflows.This route covers:
Raindrop, TS2Vec, TimesNet, BRITS, CSAI, GRUD,
SAITS, iTransformer, TEFN, PatchTST, Autoformer, and SeFT.train_set = {"X": X, "y": y}.pypots.nn.functional.Route elsewhere:
../imputation/.../forecasting/.../anomaly-detection/.../representation/.X with shape [n_samples, n_steps, n_features] and y with one
label per sample.torch-geometric stack.n_steps, n_features, n_classes, and the
model-specific architecture parameters.model.fit(train_set, val_set).model.predict(test_set) and read:
results["classification_proba"] for probabilities.results["classification"] for labels.predict_proba(test_set) and classify(test_set) directly.calc_binary_classification_metrics() for binary workflows.from pypots.classification import TimesNet
model = TimesNet(
n_steps=n_steps,
n_features=n_features,
n_classes=n_classes,
n_layers=1,
top_k=1,
d_model=16,
d_ffn=16,
n_kernels=3,
epochs=1,
device="cpu",
)
model.fit({"X": train_X, "y": train_y}, {"X": val_X, "y": val_y})
proba = model.predict_proba({"X": test_X})
labels = model.classify({"X": test_X})
For TS2Vec, predict() can be called with classifier choices such as
classifier_type="svm", "knn", or "lr" in the native tests.
pypots-cli model describe --name MODEL --task classification before
generating a config; many shared model names differ by task wrapper.classification_proba for ranking metrics such as ROC-AUC and PR-AUC.classification only when discrete class labels are needed.Raindrop fails on missing PyG packages, install the compatible PyG stack
or choose a non-GNN classifier.A successful classification workflow returns probabilities and labels for the same number of samples as the test input. Binary native tests commonly assert a ROC-AUC threshold and log PR-AUC, F1, precision, and recall.