################################################### #Start to get the features learned from feed in data import get_feature centroid = [] count = 0 temp = [] n = 3 * 3 num_data = 10000 clusters = [16, 32, 64, 128] #cluster = 16 #centroid_file = r"%s\%dfeature_%d.txt" %(pwd , cluster , num_data); for cluster in clusters: centroid_file = r"%s\25_4_3_%d.txt" % (pwd, cluster) centroid.append(get_feature.read_features(centroid_file)) ''' data = np.loadtxt(centroid_file,delimiter="\n") for i in range(0 , len(data)): temp.append(data[i]) count += 1 if(count == n): centroid.append(temp) temp = [] count = 0 ''' print(centroid[0]) print(len(centroid[0])) ################################################### # Final Run #####