import orngIO import sys print sys.argv[1] data = orngIO.loadARFF(sys.argv[1]) data.save(sys.argv[1].split('.')[0]+"_for_orange.tab")
def load_data(filepath): data = orngIO.loadARFF(filepath) return data
import orange import orngIO import orngClustering data = orngIO.loadARFF('bond.new.arff') for i in range(0,400): km_hc = orngClustering.KMeans(data, centroids = 7,minscorechange=0, initialization=orngClustering.KMeans_init_hierarchicalClustering(n=100))