Skip to content

LeoYeAI/agent-master-skills / 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/classification.md

View on GitHub
# Time Series Classification

Selected aeon 1.6 classifiers with scikit-learn compatible APIs. Verify estimator capability tags before choosing multivariate, missing-value, or unequal-length data.

## Convolution-Based Classifiers

Apply random convolutional transformations for efficient feature extraction:

- `Arsenal` - Ensemble of ROCKET classifiers with varied kernels
- `HydraClassifier` - Multi-resolution convolution with dilation
- `RocketClassifier` - Random convolution kernels with ridge regression
- `MiniRocketClassifier` - Simplified ROCKET variant for speed
- `MultiRocketClassifier` - Convolutional features from raw and differenced series with multiple pooling operators

**Use when**: Need fast, scalable classification with strong performance across diverse datasets.

## Deep Learning Classifiers

Neural network architectures optimized for temporal sequences:

- `FCNClassifier` - Fully convolutional network
- `ResNetClassifier` - Residual networks with skip connections
- `InceptionTimeClassifier` - Multi-scale inception modules
- `TimeCNNClassifier` - Standard CNN for time series
- `MLPClassifier` - Multi-layer perceptron baseline
- `EncoderClassifier` - Convolutional encoder architecture
- `DisjointCNNClassifier` - Shapelet-focused architecture

**Use when**: Large datasets available, need end-to-end learning, or complex temporal patterns.

## Dictionary-Based Classifiers

Transform time series into symbolic representations:

- `BOSSEnsemble` - Bag-of-SFA-Symbols with ensemble voting
- `TemporalDictionaryEnsemble` - Ensemble of symbolic Fourier bag-of-words models
- `WEASEL` - Word ExtrAction for time SEries cLassification
- `MrSEQLClassifier` - Multiple symbolic sequence learning

**Use when**: Need interpretable models, sparse patterns, or symbolic reasoning.

## Distance-Based Classifiers

Leverage specialized time series distance metrics:

- `KNeighborsTimeSeriesClassifier` - k-NN with temporal distances (DTW, LCSS, ERP, etc.)
- `ElasticEnsemble` - Combines multiple elastic distance measures
- `ProximityForest` - Tree ensemble using distance-based splits

**Use when**: Small datasets, need similarity-based classification, or interpretable decisions.

## Feature-Based Classifiers

Extract statistical and signature features before classification:

- `Catch22Classifier` - 22 canonical time-series characteristics
- `TSFreshClassifier` - Automated feature extraction via tsfresh
- `SignatureClassifier` - Path signature transformations
- `SummaryClassifier` - Summary statistics extraction
- `FreshPRINCEClassifier` - TSFresh features followed by rotation forest

**Use when**: Need interpretable features, domain expertise available, or feature engineering approach.

## Interval-Based Classifiers

Extract features from random or supervised intervals:

- `CanonicalIntervalForestClassifier` - Random interval features with decision trees
- `DrCIFClassifier` - Diverse Representation CIF with catch22 features
- `TimeSeriesForestClassifier` - Random intervals with summary statistics
- `RandomIntervalClassifier` - Simple interval-based approach
- `RandomIntervalSpectralEnsembleClassifier` - Spectral features from intervals
- `SupervisedTimeSeriesForest` - Supervised interval selection

**Use when**: Discriminative patterns occur in specific time windows.

## Shapelet-Based Classifiers

Identify discriminative subsequences (shapelets):

- `ShapeletTransformClassifier` - Discovers and uses discriminative shapelets
- `SASTClassifier` - Scalable approximate shapelet transform
- `RDSTClassifier` - Random dilated shapelet transform

**Use when**: Need interpretable discriminative patterns or phase-invariant features.

## Hybrid Classifiers

Combine multiple classification paradigms:

- `HIVECOTEV1` - Hierarchical Vote Collective of Transformation-based Ensembles (version 1)
- `HIVECOTEV2` - Enhanced version with updated components

**Use when**: Maximum accuracy required, computational resources available.

## Early Classification

Make predictions before observing entire time series:

- `TEASER` - Two-tier Early and Accurate Series Classifier
- `ProbabilityThresholdEarlyClassifier` - Prediction when confidence exceeds threshold

**Use when**: Real-time decisions needed, or observations have cost.

## Ordinal Classification

Handle ordered class labels:

- `OrdinalTDE` - Temporal dictionary ensemble for ordinal outputs

**Use when**: Classes have natural ordering (e.g., severity levels).

## Composition Tools

Build custom pipelines and ensembles:

- `ClassifierPipeline` - Chain transformers with classifiers
- `ClassifierEnsemble` - Weighted combination of classifiers
- `SklearnClassifierWrapper` - Adapt sklearn classifiers for time series

`LearningShapeletClassifier` was removed in aeon 1.6 after deprecation in 1.5. Use the supported shapelet estimators above.

## Quick Start

```python
from aeon.classification.convolution_based import RocketClassifier
from aeon.datasets import load_classification

# Load data
X_train, y_train = load_classification("GunPoint", split="train")
X_test, y_test = load_classification("GunPoint", split="test")

# Train and predict
clf = RocketClassifier()
clf.fit(X_train, y_train)
accuracy = clf.score(X_test, y_test)
```

## Algorithm Selection

- **Speed priority**: MiniRocketClassifier, Arsenal
- **Accuracy priority**: HIVECOTEV2, InceptionTimeClassifier
- **Interpretability**: ShapeletTransformClassifier, Catch22Classifier
- **Small data**: KNeighborsTimeSeriesClassifier, Distance-based methods
- **Large data**: Deep learning classifiers, ROCKET variants
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: 471kUpdated 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