You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many cases I would randomly see this error; especially for cases of many clusters as assignments was more likely to have missed an update that your above fix addresses.
Traceback (most recent call last):
File "study_clustering_based_selection.py", line 584, in
dtw_clustering(list(X), n_clusters)
File "study_clustering_based_selection.py", line 549, in dtw_clustering
tsc.k_means_clust(data=X, num_iter=3, w=5, progress=True)
File "study_clustering_based_selection.py", line 223, in k_means_clust
self.centroids[key]=[m/len(self.assignments[key]) for m in clust_sum]
TypeError: 'int' object is not iterable
this code is error! when the element match the clus , the element will not append to the clust ,it make the result error!the right code like this:
The text was updated successfully, but these errors were encountered: