Search code examples
rtime-seriescluster-analysistsclust

Time-series clustering with multiple seeds automated


i am trying to use time-series clustering, following the excellent examples of https://cran.r-project.org/web/packages/dtwclust/vignettes/dtwclust.pdf . However, when I use partitional clustering, the seed is very crucial to the results. Is there an automated way, to run the clustering with multiple seed and show the one that yields the lowest total inter-cluster distance?

Thanks


Solution

  • You can pass a control parameter with nrep > 1, that will use multiple seeds, and you can choose which result to keep based on your criteria (a list of clustering results will be returned). You still need to pass one "starting" seed to tsclust though.

    Documentation here.