Changeset 9957:4ba6c6d1bb61 in orange


Ignore:
Timestamp:
02/07/12 20:04:17 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
e72d404048911ba6e45e4d30027e82970eaab550
Message:

Moved also required datasets.

Location:
Orange/testing/regression/tests_20
Files:
12 added
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/regression/tests_20/modules_kmeans-cmp-init.py

    r9952 r9957  
    33import random 
    44 
    5 data_names = ["iris", "housing", "vehicle"] 
     5data_names = ["iris.tab", "housing.tab", "vehicle.tab"] 
    66data_sets = [orange.ExampleTable(name) for name in data_names] 
    77 
     
    99for data, name in zip(data_sets, data_names): 
    1010    random.seed(42) 
    11     km_random = orngClustering.KMeans(data, centroids = 3) 
    12     km_diversity = orngClustering.KMeans(data, centroids = 3, \ 
     11    km_random = orngClustering.KMeans(data, centroids=3) 
     12    km_diversity = orngClustering.KMeans(data, centroids=3, \ 
    1313        initialization=orngClustering.kmeans_init_diversity) 
    14     km_hc = orngClustering.KMeans(data, centroids = 3, \ 
     14    km_hc = orngClustering.KMeans(data, centroids=3, \ 
    1515        initialization=orngClustering.KMeans_init_hierarchicalClustering(n=100)) 
    1616    print "%10s %3d %3d %3d" % (name, km_random.iteration, km_diversity.iteration, km_hc.iteration) 
Note: See TracChangeset for help on using the changeset viewer.