time-series-classification-and-clustering icon indicating copy to clipboard operation
time-series-classification-and-clustering copied to clipboard

line 548, you should let the first argument be a sequence

Open Concenterate opened this issue 6 years ago • 0 comments

line 548, you should let the first argument be a sequence. Because of the function "random.sample()" needs its first argument to be a sequence, so you'll need to convert data into a sequence (or set) in order to pass it without error. Here, just simply try to put "data" into the "list()" function, then we can fix the problem. So, from "centroids=random.sample(data,num_clust)" to "centroids=random.sample(list(data),num_clust)". Thank you.

Concenterate avatar Oct 14 '18 03:10 Concenterate