本文整理汇总了Python中pyclustering.cluster.tests.agglomerative_templates.AgglomerativeTestTemplates类的典型用法代码示例。如果您正苦于以下问题:Python AgglomerativeTestTemplates类的具体用法?Python AgglomerativeTestTemplates怎么用?Python AgglomerativeTestTemplates使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AgglomerativeTestTemplates类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testClusteringSampleSimple1LinkCentroidByCore
def testClusteringSampleSimple1LinkCentroidByCore(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.CENTROID_LINK, [5, 5], True);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, type_link.CENTROID_LINK, [10], True);
示例2: testClusterAllocationOneDimensionDataLinkComplete
def testClusterAllocationOneDimensionDataLinkComplete(self):
AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.COMPLETE_LINK, False);
示例3: testClusteringSampleSimple3LinkCentroid
def testClusteringSampleSimple3LinkCentroid(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, type_link.CENTROID_LINK, [10, 10, 10, 30], False);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 1, type_link.CENTROID_LINK, [60], False);
示例4: testClusteringSampleSimple4LinkCentroid
def testClusteringSampleSimple4LinkCentroid(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 5, type_link.CENTROID_LINK, [15, 15, 15, 15, 15], False);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, type_link.CENTROID_LINK, [75], False);
示例5: testTwoClusterAllocationTheSameObjectLinkSingle
def testTwoClusterAllocationTheSameObjectLinkSingle(self):
AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.SINGLE_LINK, False);
示例6: testClusteringSampleSimple2LinkCentroid
def testClusteringSampleSimple2LinkCentroid(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, type_link.CENTROID_LINK, [5, 8, 10], False);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, type_link.CENTROID_LINK, [23], False);
示例7: testClusteringSampleSimple5LinkAverage
def testClusteringSampleSimple5LinkAverage(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 4, type_link.AVERAGE_LINK, [15, 15, 15, 15], False);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 1, type_link.AVERAGE_LINK, [60], False);
示例8: testTwoClusterAllocationTheSameObjectLinkCentroid
def testTwoClusterAllocationTheSameObjectLinkCentroid(self):
AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.CENTROID_LINK, False);
示例9: testClusteringTheSameData1LinkSingleByCore
def testClusteringTheSameData1LinkSingleByCore(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, type_link.SINGLE_LINK, [10, 20], True);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 1, type_link.SINGLE_LINK, [30], True);
示例10: testClusteringTheSameData2LinkCompleteByCore
def testClusteringTheSameData2LinkCompleteByCore(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, type_link.COMPLETE_LINK, [5, 10], True);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, type_link.COMPLETE_LINK, [15], True);
示例11: testClusteringTheSameData1LinkCentroidByCore
def testClusteringTheSameData1LinkCentroidByCore(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, type_link.CENTROID_LINK, [10, 20], True);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 1, type_link.CENTROID_LINK, [30], True);
示例12: testClusteringSampleSimple2LinkCompleteByCore
def testClusteringSampleSimple2LinkCompleteByCore(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, type_link.COMPLETE_LINK, [5, 8, 10], True);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, type_link.COMPLETE_LINK, [23], True);
示例13: testClusteringSampleSimple1LinkSingleByCore
def testClusteringSampleSimple1LinkSingleByCore(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.SINGLE_LINK, [5, 5], True);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, type_link.SINGLE_LINK, [10], True);
示例14: testClusterAllocationOneDimensionDataLinkSingle
def testClusterAllocationOneDimensionDataLinkSingle(self):
AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.SINGLE_LINK, False);
示例15: testClusteringTheSameData1LinkComplete
def testClusteringTheSameData1LinkComplete(self):
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, type_link.COMPLETE_LINK, [10, 20], False);
AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 1, type_link.COMPLETE_LINK, [30], False);