计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
clustering【效率与协作】Cluster time series with TimeSeriesKMeans, KernelKMeans, KShape, TimeSeriesDBSCAN, and silhouette scoring.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for tslearn clustering tasks on small or preprocessed time-series datasets.
Start here:
Route here for:
TimeSeriesKMeans with metric="euclidean", "dtw", or "softdtw".KernelKMeans with the GAK kernel or another pairwise-kernel metric.KShape on equal-length, mean-variance-normalized series.TimeSeriesDBSCAN with dtw, ctw, frechet, softdtw_normalized, euclidean, or precomputed.silhouette_score and other clustering-only score checks.EmptyClusterError, TimeSeriesCentroidBasedClusteringMixin, and centroid-utility debugging.Do not handle here:
Operating rules:
TimeSeriesKMeans or KShape.KernelKMeans or TimeSeriesDBSCAN.TimeSeriesKMeans.cluster_centers_ are barycenters: Euclidean means, DTW DBA, or Soft-DTW barycenters.KShape.cluster_centers_ are shape centroids after mean-variance scaling.KernelKMeans and TimeSeriesDBSCAN do not produce centroids; DBSCAN exposes components_ and core_ts_indices_ instead.fit_predict for the training set and predict only on estimators that implement it.
TimeSeriesDBSCAN is fit-only; there is no out-of-sample predict.TimeSeriesKMeans(metric="dtw"|"softdtw"), KernelKMeans with GAK, or TimeSeriesDBSCAN with a supported metric.
euclidean KMeans, KShape, and Euclidean DBSCAN expect equal-length series.random_state and increase n_init on tiny datasets.
n_clusters, adjust init, or improve the metric parameters.silhouette_score with the same geometry you want to validate.
metric="precomputed" only when X is already a square distance matrix.metric="softdtw", pass the same gamma in metric_params.If the task is outside clustering, return to the tslearn router.