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

"TypeError: 'NoneType' object is not iterable" ERROR in Clustering

Open gh-osh opened this issue 7 years ago • 0 comments

I've followed the exact method (for Kmean Clustering) you've written in the tutorial. But it generates following error:

100
iteration 1
100
iteration 2
69
iteration 3
48
iteration 4
38
Traceback (most recent call last):
  File "spatio-time cluster.py", line 177, in <module>
    for i in centroids:
TypeError: 'NoneType' object is not iterable

The datasets are same as your Github repo. I am also attaching the code. Please let me know, where I am doing wrong.

gh-osh avatar Jul 27 '17 07:07 gh-osh