Replies: 2 comments 7 replies
-
awesome, I think it should be |
Beta Was this translation helpful? Give feedback.
6 replies
-
Question: @fkiraly, so without silhouette scoring, how did you all test to ensure the TS clustering gave good results? Maybe I can use that? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Answering a question from discord, "love the lib, quick questions with timeserieskmeans how do we get the silhouette scores?"
My answer:
To get the silhouette score:
estimator.labels_
attributesklearn.metrics.silhouette_score
sktime.dists_kernels
, e.g.,from sktime.dists_kernels.dtw import DtwDistTslearn
. Instantiate it, e.g.,dist = DtwDistTslearn()
dist_mat = dist.transform(X)
silhouette_score(dist_mat, labels, metric="precomputed")
In one code block:
Beta Was this translation helpful? Give feedback.
All reactions