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


Python xmeans_templates.XmeansTestTemplates类代码示例

本文整理汇总了Python中pyclustering.cluster.tests.xmeans_templates.XmeansTestTemplates的典型用法代码示例。如果您正苦于以下问题:Python XmeansTestTemplates类的具体用法?Python XmeansTestTemplates怎么用?Python XmeansTestTemplates使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了XmeansTestTemplates类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testMndlWrongStartClusterAllocationSampleSimple5

 def testMndlWrongStartClusterAllocationSampleSimple5(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, [[0.0, 1.0], [0.0, 0.0]], [15, 15, 15, 15], splitting_type.MINIMUM_NOISELESS_DESCRIPTION_LENGTH, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例2: testBicClusterAllocationMaxLessRealSampleSimple4

 def testBicClusterAllocationMaxLessRealSampleSimple4(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, [[1.5, 4.0]], None, splitting_type.BAYESIAN_INFORMATION_CRITERION, 2, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例3: testMndlClusterAllocationMaxLessRealSampleSimple4

 def testMndlClusterAllocationMaxLessRealSampleSimple4(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, [[1.5, 4.0]], None, splitting_type.MINIMUM_NOISELESS_DESCRIPTION_LENGTH, 2, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例4: testBicClusterAllocationMaxLessRealSampleSimple3

 def testBicClusterAllocationMaxLessRealSampleSimple3(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, [[4.0, 1.0], [2.0, 2.0], [2.3, 3.9]], None, splitting_type.BAYESIAN_INFORMATION_CRITERION, 3, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例5: testMndlClusterAllocationSampleSimple3

 def testMndlClusterAllocationSampleSimple3(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, [[0.2, 0.1], [4.0, 1.0], [2.0, 2.0], [2.3, 3.9]], [10, 10, 10, 30], splitting_type.MINIMUM_NOISELESS_DESCRIPTION_LENGTH, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例6: testMndlClusterAllocationSampleSimple1

 def testMndlClusterAllocationSampleSimple1(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.7, 5.5], [6.7, 7.5]], [5, 5], splitting_type.MINIMUM_NOISELESS_DESCRIPTION_LENGTH, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例7: testBicWrongStartClusterAllocationSampleSimple2

 def testBicWrongStartClusterAllocationSampleSimple2(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, [[3.5, 4.8], [6.9, 7]], [10, 5, 8], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例8: testMndlClusterAllocationSampleTwoDiamonds

 def testMndlClusterAllocationSampleTwoDiamonds(self):
     XmeansTestTemplates.templateLengthProcessData(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS, [[0.8, 0.2], [3.0, 0.0]], [400, 400], splitting_type.MINIMUM_NOISELESS_DESCRIPTION_LENGTH, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例9: testMathErrorDomainBic

 def testMathErrorDomainBic(self):
     # This is test for bug that was found in #407: 0.0 under logarithm function.
     XmeansTestTemplates.templateLengthProcessData([[0], [0], [10], [10], [20], [20]], [[5], [20]], [2, 2, 2], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_xmeans.py

示例10: testBicClusterAllocationSampleSimple10WithoutInitial

 def testBicClusterAllocationSampleSimple10WithoutInitial(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, None, [11, 11, 11], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例11: testBicWrongStartClusterAllocationSampleTwoDiamonds

 def testBicWrongStartClusterAllocationSampleTwoDiamonds(self):
     XmeansTestTemplates.templateLengthProcessData(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS, [[0.8, 0.2]], [400, 400], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例12: testBicClusterAllocationSampleSimple10

 def testBicClusterAllocationSampleSimple10(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, [[0.0, 0.3], [4.5, 3.4], [10.1, 10.6]], [11, 11, 11], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例13: testBicClusterAllocationSampleSimple9

 def testBicClusterAllocationSampleSimple9(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, [[3.0], [6.0]], [10, 20], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例14: testBicClusterAllocationSampleSimple6

 def testBicClusterAllocationSampleSimple6(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE6, [[3.5, 3.5], [3.7, 3.7]], [20, 21], splitting_type.BAYESIAN_INFORMATION_CRITERION, 20, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py

示例15: testBicSampleSimple1MaxLessReal

 def testBicSampleSimple1MaxLessReal(self):
     XmeansTestTemplates.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.7, 5.5]], None, splitting_type.BAYESIAN_INFORMATION_CRITERION, 1, False)
开发者ID:annoviko,项目名称:pyclustering,代码行数:2,代码来源:ut_xmeans.py


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