Skip to content

foryourhealth111-pixel/Vibe-Skills / bundled/skills/aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

references/forecasting.md

View on GitHub
# Time Series Forecasting

Aeon provides forecasting algorithms for predicting future time series values.

## Naive and Baseline Methods

Simple forecasting strategies for comparison:

- `NaiveForecaster` - Multiple strategies: last value, mean, seasonal naive
  - Parameters: `strategy` ("last", "mean", "seasonal"), `sp` (seasonal period)
  - **Use when**: Establishing baselines or simple patterns

## Statistical Models

Classical time series forecasting methods:

### ARIMA
- `ARIMA` - AutoRegressive Integrated Moving Average
  - Parameters: `p` (AR order), `d` (differencing), `q` (MA order)
  - **Use when**: Linear patterns, stationary or difference-stationary series

### Exponential Smoothing
- `ETS` - Error-Trend-Seasonal decomposition
  - Parameters: `error`, `trend`, `seasonal` types
  - **Use when**: Trend and seasonal patterns present

### Threshold Autoregressive
- `TAR` - Threshold Autoregressive model for regime switching
- `AutoTAR` - Automated threshold discovery
  - **Use when**: Series exhibits different behaviors in different regimes

### Theta Method
- `Theta` - Classical Theta forecasting
  - Parameters: `theta`, `weights` for decomposition
  - **Use when**: Simple but effective baseline needed

### Time-Varying Parameter
- `TVP` - Time-varying parameter model with Kalman filtering
  - **Use when**: Parameters change over time

## Deep Learning Forecasters

Neural networks for complex temporal patterns:

- `TCNForecaster` - Temporal Convolutional Network
  - Dilated convolutions for large receptive fields
  - **Use when**: Long sequences, need non-recurrent architecture

- `DeepARNetwork` - Probabilistic forecasting with RNNs
  - Provides prediction intervals
  - **Use when**: Need probabilistic forecasts, uncertainty quantification

## Regression-Based Forecasting

Apply regression to lagged features:

- `RegressionForecaster` - Wraps regressors for forecasting
  - Parameters: `window_length`, `horizon`
  - **Use when**: Want to use any regressor as forecaster

## Quick Start

```python
from aeon.forecasting.naive import NaiveForecaster
from aeon.forecasting.arima import ARIMA
import numpy as np

# Create time series
y = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

# Naive baseline
naive = NaiveForecaster(strategy="last")
naive.fit(y)
forecast_naive = naive.predict(fh=[1, 2, 3])

# ARIMA model
arima = ARIMA(order=(1, 1, 1))
arima.fit(y)
forecast_arima = arima.predict(fh=[1, 2, 3])
```

## Forecasting Horizon

The forecasting horizon (`fh`) specifies which future time points to predict:

```python
# Relative horizon (next 3 steps)
fh = [1, 2, 3]

# Absolute horizon (specific time indices)
from aeon.forecasting.base import ForecastingHorizon
fh = ForecastingHorizon([11, 12, 13], is_relative=False)
```

## Model Selection

- **Baseline**: NaiveForecaster with seasonal strategy
- **Linear patterns**: ARIMA
- **Trend + seasonality**: ETS
- **Regime changes**: TAR, AutoTAR
- **Complex patterns**: TCNForecaster
- **Probabilistic**: DeepARNetwork
- **Long sequences**: TCNForecaster
- **Short sequences**: ARIMA, ETS

## Evaluation Metrics

Use standard forecasting metrics:

```python
from aeon.performance_metrics.forecasting import (
    mean_absolute_error,
    mean_squared_error,
    mean_absolute_percentage_error
)

# Calculate error
mae = mean_absolute_error(y_true, y_pred)
mse = mean_squared_error(y_true, y_pred)
mape = mean_absolute_percentage_error(y_true, y_pred)
```

## Exogenous Variables

Many forecasters support exogenous features:

```python
# Train with exogenous variables
forecaster.fit(y, X=X_train)

# Predict requires future exogenous values
y_pred = forecaster.predict(fh=[1, 2, 3], X=X_test)
```

## Base Classes

- `BaseForecaster` - Abstract base for all forecasters
- `BaseDeepForecaster` - Base for deep learning forecasters

Extend these to implement custom forecasting algorithms.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall