当前位置: 首页>>代码示例>>Python>>正文


Python agglomerative_templates.AgglomerativeTestTemplates类代码示例

本文整理汇总了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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:it_agglomerative.py

示例2: testClusterAllocationOneDimensionDataLinkComplete

 def testClusterAllocationOneDimensionDataLinkComplete(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.COMPLETE_LINK, False);
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_agglomerative.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_agglomerative.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_agglomerative.py

示例5: testTwoClusterAllocationTheSameObjectLinkSingle

 def testTwoClusterAllocationTheSameObjectLinkSingle(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.SINGLE_LINK, False); 
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_agglomerative.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_agglomerative.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_agglomerative.py

示例8: testTwoClusterAllocationTheSameObjectLinkCentroid

 def testTwoClusterAllocationTheSameObjectLinkCentroid(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.CENTROID_LINK, False);
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_agglomerative.py

示例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); 
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:it_agglomerative.py

示例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); 
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:it_agglomerative.py

示例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); 
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:it_agglomerative.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:it_agglomerative.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:it_agglomerative.py

示例14: testClusterAllocationOneDimensionDataLinkSingle

 def testClusterAllocationOneDimensionDataLinkSingle(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.SINGLE_LINK, False);
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_agglomerative.py

示例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); 
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_agglomerative.py


注:本文中的pyclustering.cluster.tests.agglomerative_templates.AgglomerativeTestTemplates类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。