Skip to content

masatakashiwagi/analysis-tslearn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sample codes using tslearn.

description

  • Waveform clustering is performed on the sample data using the KShape algorithm.
  • The number of clusters must be given as an argument to the algorithm.
    • In this case, we set n_clusters=2 since we know that there are two classes after checking the data in advance.
  • There are several ways to check the number of clusters, but in this case the elbow method was used.
    • Other possible methods are
      • BIC・AIC
      • GAP method
      • Silhouette method
      • Elbow method

directory

  • data/: sample dataset for clustering waveform
  • notebook/: jupyter notebook implementing tslearn sample code