Ignore:
Timestamp:
03/15/11 14:57:05 (3 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
a4d5dd3bc47b1cea11932b6f17ec5c28b3b34b4c
Message:

Corrected the (broken) example scripts for kmeans.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/kmeans-run.py

    r7130 r7743  
    1 import orange 
    2 import Orange.cluster 
     1import Orange 
    32     
    4 data = orange.ExampleTable("iris") 
    5 km = Orange.cluster.KMeans(data, 3) 
     3table = Orange.data.Table("iris") 
     4km = Orange.clustering.kmeans.Clustering(table, 3) 
    65print km.clusters[-10:] 
Note: See TracChangeset for help on using the changeset viewer.