技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
tslearn【数据与研究】Routes tslearn users to data preparation, metrics/backends, clustering, supervised models, forecasting, and analysis/persistence workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
Public install:
python -m pip install tslearn
If you are working from a checkout and want an editable install instead:
python -m pip install -e .
Optional workflows may need extra packages:
pandas for sktime / pyflux / tsfresh conversionsstumpy for MatrixProfile stumph5py for HDF5 round-tripstorch for the PyTorch metric backend and shapelet backend setupkeras for LearningShapeletsMinimal import check:
python -c "import tslearn; print(tslearn.__version__)"
For a tiny environment check that also probes common optional packages, run:
python scripts/check_tslearn_env.py
| 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 |
tslearn uses dense time-series arrays shaped (n_ts, sz, d) and allows variable-length datasets by padding shorter series with trailing NaNs. The package spans:
The module map and common optional dependencies live in references/overview.md.
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.references/overview.md first.data-preparationmetrics-backendsclusteringsupervised-modelsforecastinganalysis-and-persistenceBefore 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.