I’m confused

K-Means Clustering

I've been working through the examples in collective intelligence and found issue i not to sure how to fix

>> reload(clusters)
>> kclust=clusters.kcluster(data,k=10)
Iteration 0
...
>> [rownames[r] for r in k[0]]

An error is called saying that K is not defined, why would this be?

adam
2 people have
this problem
+1
Reply