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
I gave the code a go, since I was iterating over K=1,..., n; seems that K=1 was the source of the problem.
Although there might not be sense of using K=1, we can prevent the error using:
Line 57
dimens = 0 if num_clusters==1 else 1
choice_cluster = torch.argmin(dis, dim=dimens) # choice_cluster = torch.argmin(dis, dim=1)
How to set the num_features?
The text was updated successfully, but these errors were encountered: