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
metrics-and-tuningChoose and use PyTorch Forecasting metrics, losses, composite objectives, learning-rate finder setup, and Temporal Fusion Transformer Optuna tuning.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to choose or wire PyTorch Forecasting metrics, loss functions, probabilistic output heads, composite or aggregate objectives, learning-rate finder settings, or Temporal Fusion Transformer Optuna tuning.
SMAPE, MAE, MAPE, RMSE, MASE, CrossEntropy, PoissonLoss, TweedieLoss, QuantileLoss, distribution losses, MultiLoss, or aggregate/composite objectives.optimize_hyperparameters() recipes around already-built TimeSeriesDataSet dataloaders.../forecasting-models/SKILL.md.TimeSeriesDataSet construction, normalizers, dataloaders, and target-scale fields, use ../data-pipeline/SKILL.md.references/metrics-losses.md explains metric/loss selection, imports, API examples, multi-horizon and quantile tensor shapes, distribution-loss output sizing, optional dependencies, MultiLoss, and aggregate/bias objectives.references/tuning.md gives learning-rate finder and Temporal Fusion Transformer Optuna recipes, safe budgets, optional extras, generated artifacts, and failure modes.references/troubleshooting.md maps common metric/tuning symptoms to causes and recovery steps, including non-finite loss, MQF2 cpflows, wrong output_size, aggregate metric batch effects, and LR finder stalls.scripts/check_metrics_shapes.py is a no-training argparse helper that constructs synthetic tensors and validates selected metric/loss shape contracts.TimeSeriesDataSet/dataloader; if not, route to the data-pipeline sub-skill.(0, 1) target, positive skewed target, multivariate/horizon-dependent target, or multi-target output.output_size to the loss. Prefer Model.from_dataset(..., loss=loss) so PyTorch Forecasting infers output_size; if manually setting it, use len(QuantileLoss.quantiles), 1 for point losses, class count for CrossEntropy, or len(loss.distribution_arguments) for distribution losses.cpflows; tuning requires optuna, optuna-integration, and statsmodels; plotting LR curves requires matplotlib.