Skip to content
Back to skills

Tslearn

ASecurity

"Routes tslearn users to data preparation, metrics/backends,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datapythongobashapibackendperformance

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill tslearn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tslearn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tslearn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-tslearn/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-tslearn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tslearn
description: "Routes tslearn users to data preparation, metrics/backends,
  clustering, supervised models, forecasting, and analysis/persistence
  workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 2-Clause
---

# tslearn

Use this skill for the tslearn time-series machine-learning toolkit.

Start here when the task names `tslearn`, a tslearn example, a tslearn doc page, a tslearn error message, or a tslearn class/function such as `TimeSeriesKMeans`, `dtw`, `LearningShapelets`, `VARIMA`, or `MatrixProfile`.

## Install and quick check

Public install:

```bash
python -m pip install tslearn
```

If you are working from a checkout and want an editable install instead:

```bash
python -m pip install -e .
```

Optional workflows may need extra packages:

- `pandas` for sktime / pyflux / tsfresh conversions
- `stumpy` for MatrixProfile `stump`
- `h5py` for HDF5 round-trips
- `torch` for the PyTorch metric backend and shapelet backend setup
- `keras` for `LearningShapelets`

Minimal import check:

```bash
python -c "import tslearn; print(tslearn.__version__)"
```

For a tiny environment check that also probes common optional packages, run:

```bash
python scripts/check_tslearn_env.py
```

## Route map

| If the user wants... | Go here |
| --- | --- |
| Load, shape, clean, resample, synchronize, symbolize, or convert time-series data | `sub-skills/data-preparation/SKILL.md` |
| DTW / Soft-DTW / GAK / LCSS / Fréchet / CTW, PyTorch backend choice, performance metrics, or barycenters | `sub-skills/metrics-backends/SKILL.md` |
| Cluster time series or score a clustering result | `sub-skills/clustering/SKILL.md` |
| Fit a k-NN, SVM, early-classification, shapelet, or time-series MLP model | `sub-skills/supervised-models/SKILL.md` |
| Fit or debug VARIMA / AutoVARIMA forecasting | `sub-skills/forecasting/SKILL.md` |
| Compute MatrixProfile or round-trip fitted estimators through JSON / Pickle / HDF5 | `sub-skills/analysis-and-persistence/SKILL.md` |

## What this skill owns

tslearn uses dense time-series arrays shaped `(n_ts, sz, d)` and allows variable-length datasets by padding shorter series with trailing `NaN`s. The package spans:

- data utilities and interoperability helpers
- distance metrics and differentiable time-series losses
- barycenters and scoring helpers
- clustering estimators
- supervised models
- forecasting
- matrix profile
- fitted-estimator persistence

The module map and common optional dependencies live in `references/overview.md`.

## When to read the root references

- `references/overview.md` — module ownership map and common dependency picture.
- `references/troubleshooting.md` — cross-cutting install/import/shape/backend/download/persistence failures.
- `references/repo-provenance.md` — check whether the skill still matches the current checkout.
- `references/repo-routing-metadata.json` — router metadata used during import/update.

## Root-level guidance

1. If the request is broad or ambiguous, read `references/overview.md` first.
2. If the task crosses multiple workflow families, start with the most upstream sub-skill, then hand off downstream.
3. Prefer the bundled smoke helper only for a tiny environment sanity check.
4. Keep plotting gallery examples out of the runtime path; use the bundled smoke scripts instead.
5. Do not assume CUDA, stumpy, pandas, h5py, Keras, or torch are installed unless the task needs them.

## Common handoffs

- Data shaping before modeling → `data-preparation`
- Metric choice before clustering or supervised modeling → `metrics-backends`
- Clustering after scaling / metric choice → `clustering`
- Supervised fitting after preprocessing and metric choice → `supervised-models`
- Forecasting after shaping the series → `forecasting`
- Analysis / persistence after fitting a model → `analysis-and-persistence`

## Refresh check

Before using this skill on a different checkout, compare that checkout with `references/repo-provenance.md`. If the commit, branch, dirty state, package version, or evidence roots changed, refresh the skill instead of assuming it is current.

Files in this skill

  • SKILL.md4.1 KB
  • references/overview.md3 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json516 B
  • references/troubleshooting.md3.7 KB
  • scripts/check_tslearn_env.py4.4 KB
  • sub-skills/analysis-and-persistence/SKILL.md1.8 KB
  • sub-skills/analysis-and-persistence/references/api-reference.md1.8 KB
  • sub-skills/analysis-and-persistence/references/troubleshooting.md1.2 KB
  • sub-skills/analysis-and-persistence/references/workflows.md1.3 KB
  • sub-skills/analysis-and-persistence/scripts/analysis_smoke.py4.9 KB
  • sub-skills/clustering/SKILL.md2.9 KB
  • sub-skills/clustering/references/api-reference.md4.3 KB
  • sub-skills/clustering/references/troubleshooting.md2.9 KB
  • sub-skills/clustering/references/workflows.md3.8 KB
  • sub-skills/clustering/scripts/clustering_smoke.py4.3 KB
  • sub-skills/data-preparation/SKILL.md3.4 KB
  • sub-skills/data-preparation/references/api-reference.md8.2 KB
  • sub-skills/data-preparation/references/interop.md4.2 KB
  • sub-skills/data-preparation/references/troubleshooting.md4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.