def static_k_semisynthetic_test_paper_2(): console.write_header("Loading Native symbols") symbolClasses = loader.load_native_xls() console.write_header("Loading Foreign symbols") foreignClasses = loader.load_foreign_xls() util.global_variables.CLASS_NUM = len(symbolClasses) util.global_variables.CHAR_NUM = len(symbolClasses[0].learning_set[0].characteristicsValues) Clusterer().computeClusters(symbolClasses) paper2.compute(symbolClasses, foreignClasses)
def semisynthetic_test_paper_2(): console.write_header("Loading Native symbols") symbolClasses = loader.load_native_xls() console.write_header("Loading Foreign symbols") foreignClasses = loader.load_foreign_xls() util.global_variables.CLASS_NUM = len(symbolClasses) util.global_variables.CHAR_NUM = len(symbolClasses[0].learning_set[0].characteristicsValues) # COMPUTE CLUSTER EVALUATION for c in range(0, util.global_variables.CLASS_NUM): console.write_header("Computing Cluster Evaluation") best_k = ps.cluster_evaluation(util.global_variables.MAX_K_CLUS_EVALUATION, symbolClasses[c:c+1]) util.global_variables.K = best_k[0] console.write_header("Computing Clusters with K:", str(util.global_variables.K)) Clusterer().computeClusters(symbolClasses[c:c+1]) paper2.compute(symbolClasses, foreignClasses)