本文整理汇总了Python中pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates.templateLengthProcessWithMetric方法的典型用法代码示例。如果您正苦于以下问题:Python KmedoidsTestTemplates.templateLengthProcessWithMetric方法的具体用法?Python KmedoidsTestTemplates.templateLengthProcessWithMetric怎么用?Python KmedoidsTestTemplates.templateLengthProcessWithMetric使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates
的用法示例。
在下文中一共展示了KmedoidsTestTemplates.templateLengthProcessWithMetric方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testClusterAllocationSampleSimple1UserDefinedDistanceMatrixByCore
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1UserDefinedDistanceMatrixByCore(self):
metric = distance_metric(type_metric.USER_DEFINED, func=distance_metric(type_metric.EUCLIDEAN))
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, True, data_type='distance_matrix')
示例2: testClusterAllocationSampleSimple1ChebyshevDistanceMatrixByCore
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1ChebyshevDistanceMatrixByCore(self):
metric = distance_metric(type_metric.CHEBYSHEV)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, True, data_type='distance_matrix')
示例3: testClusterAllocationSampleSimple1MinkowskiDistanceMatrixByCore
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1MinkowskiDistanceMatrixByCore(self):
metric = distance_metric(type_metric.MINKOWSKI, degree=2.0)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, True, data_type='distance_matrix')
示例4: testClusterAllocationSampleSimple1SquareEuclideanDistanceMatrixByCore
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1SquareEuclideanDistanceMatrixByCore(self):
metric = distance_metric(type_metric.EUCLIDEAN_SQUARE)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, True, data_type='distance_matrix')
示例5: testClusterAllocationSampleSimple1ManhattanDistanceMatrixByCore
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1ManhattanDistanceMatrixByCore(self):
metric = distance_metric(type_metric.MANHATTAN)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, True, data_type='distance_matrix')
示例6: testClusterAllocationSampleSimple1EuclideanByCore
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1EuclideanByCore(self):
metric = distance_metric(type_metric.EUCLIDEAN)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, True)
示例7: testClusterAllocationSampleSimple1Minkowski
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1Minkowski(self):
metric = distance_metric(type_metric.MINKOWSKI, degree=2.0)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, False)
示例8: testClusterAllocationSampleSimple1Chebyshev
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1Chebyshev(self):
metric = distance_metric(type_metric.CHEBYSHEV)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, False)
示例9: testClusterAllocationSampleSimple1Manhattan
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1Manhattan(self):
metric = distance_metric(type_metric.MANHATTAN)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, False)
示例10: testClusterAllocationSampleSimple1SquareEuclidean
# 需要导入模块: from pyclustering.cluster.tests.kmedoids_templates import KmedoidsTestTemplates [as 别名]
# 或者: from pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates import templateLengthProcessWithMetric [as 别名]
def testClusterAllocationSampleSimple1SquareEuclidean(self):
metric = distance_metric(type_metric.EUCLIDEAN_SQUARE)
KmedoidsTestTemplates.templateLengthProcessWithMetric(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [2, 9], [5, 5], metric, False)