當前位置: 首頁>>代碼示例>>Python>>正文


Python KmedoidsTestTemplates.templateLengthProcessWithMetric方法代碼示例

本文整理匯總了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')
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:it_kmedoids.py

示例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')
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:it_kmedoids.py

示例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')
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:it_kmedoids.py

示例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')
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:it_kmedoids.py

示例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')
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:it_kmedoids.py

示例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)
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:it_kmedoids.py

示例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)
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:ut_kmedoids.py

示例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)
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:ut_kmedoids.py

示例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)
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:ut_kmedoids.py

示例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)
開發者ID:annoviko,項目名稱:pyclustering,代碼行數:5,代碼來源:ut_kmedoids.py


注:本文中的pyclustering.cluster.tests.kmedoids_templates.KmedoidsTestTemplates.templateLengthProcessWithMetric方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。