Changeset 10301:9ac790b17675 in orange


Ignore:
Timestamp:
02/18/12 15:00:29 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
Message:

Sort by cluster length.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/hierarchical-example-2.py

    r10296 r10301  
    1212root.mapping.objects = iris 
    1313 
    14 topmost = sorted(Orange.clustering.hierarchical.top_clusters(root, 4)) 
     14topmost = sorted(Orange.clustering.hierarchical.top_clusters(root, 4), key=len) 
    1515 
    1616for n, cluster in enumerate(topmost): 
Note: See TracChangeset for help on using the changeset viewer.