コード例 #1
0
 def testClusteringSampleSimple2LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, type_link.SINGLE_LINK,
         [5, 8, 10], False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, type_link.SINGLE_LINK, [23],
         False)
コード例 #2
0
 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)
コード例 #3
0
 def testClusteringSampleSimple3LinkAverage(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, type_link.AVERAGE_LINK,
         [10, 10, 10, 30], False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 1, type_link.AVERAGE_LINK, [60],
         False)
コード例 #4
0
 def testClusteringSampleSimple1LinkComplete(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.COMPLETE_LINK, [5, 5],
         False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, type_link.COMPLETE_LINK, [10],
         False)
コード例 #5
0
 def testClusteringTheSameData2LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, type_link.SINGLE_LINK, [5, 10],
         False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, type_link.SINGLE_LINK, [15],
         False)
コード例 #6
0
 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
0
 def testClusteringThreeDimensionalData1LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 2, type_link.SINGLE_LINK, [10, 10],
         False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 1, type_link.SINGLE_LINK, [20],
         False)
コード例 #8
0
 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)
コード例 #9
0
 def testClusteringTheSameData2LinkCentroid(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, type_link.CENTROID_LINK,
         [5, 10], False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, type_link.CENTROID_LINK, [15],
         False)
コード例 #10
0
 def testClusteringSampleSimple4LinkComplete(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 5, type_link.COMPLETE_LINK,
         [15, 15, 15, 15, 15], False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, type_link.COMPLETE_LINK, [75],
         False)
コード例 #11
0
 def testClusteringSampleSimple5LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 4, type_link.SINGLE_LINK,
         [15, 15, 15, 15], False)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 1, type_link.SINGLE_LINK, [60],
         False)
コード例 #12
0
 def testClusteringTheSameData1LinkAverageByCore(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, type_link.AVERAGE_LINK, [10, 20],
         True)
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 1, type_link.AVERAGE_LINK, [30],
         True)
コード例 #13
0
 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)
コード例 #14
0
 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)
コード例 #15
0
 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)
コード例 #16
0
 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)
コード例 #17
0
 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)
コード例 #18
0
 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);
コード例 #19
0
 def testTwoClusterAllocationTheSameObjectLinkSingle(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(
         10, 2, type_link.SINGLE_LINK, False)
コード例 #20
0
 def testTwoClusterAllocationTheSameObjectLinkCentroid(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(
         10, 2, type_link.CENTROID_LINK, False)
コード例 #21
0
 def testClusterAllocationOneDimensionDataLinkSingle(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(
         type_link.SINGLE_LINK, False)
コード例 #22
0
 def testClusteringThreeDimensionalData1LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 2, type_link.SINGLE_LINK, [10, 10], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 1, type_link.SINGLE_LINK, [20], False);
コード例 #23
0
 def testTwoClusterAllocationTheSameObjectLinkCentroid(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.CENTROID_LINK, False);
コード例 #24
0
 def testTwoClusterAllocationTheSameObjectsLinkAverage(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.AVERAGE_LINK, False);
コード例 #25
0
 def testClusterAllocationOneDimensionDataLinkSingle(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.SINGLE_LINK, False);
コード例 #26
0
 def testClusterAllocationOneDimensionDataLinkComplete(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.COMPLETE_LINK, False);
コード例 #27
0
 def testClusterAllocationOneDimensionDataLinkCentroid(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.CENTROID_LINK, False);
コード例 #28
0
 def testClusterAllocationOneDimensionDataLinkAverage(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(type_link.AVERAGE_LINK, False);
コード例 #29
0
 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);
コード例 #30
0
 def testClusteringSampleSimple4LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 5, type_link.SINGLE_LINK, [15, 15, 15, 15, 15], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, type_link.SINGLE_LINK, [75], False);
コード例 #31
0
 def testTwoClusterAllocationTheSameObjectLinkComplete(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.COMPLETE_LINK, False);
コード例 #32
0
 def testProcessingWhenLibraryCoreCorrupted(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.AVERAGE_LINK, [5, 5],
         True)
コード例 #33
0
 def testClusteringTheSameData2LinkCentroid(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, type_link.CENTROID_LINK, [5, 10], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, type_link.CENTROID_LINK, [15], False); 
コード例 #34
0
 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);
コード例 #35
0
 def testClusteringTheSameData2LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, type_link.SINGLE_LINK, [5, 10], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, type_link.SINGLE_LINK, [15], False);
コード例 #36
0
 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); 
コード例 #37
0
 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); 
コード例 #38
0
 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); 
コード例 #39
0
 def testClusteringSampleSimple2LinkAverageByCore(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, type_link.AVERAGE_LINK, [5, 8, 10], True);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, type_link.AVERAGE_LINK, [23], True);
コード例 #40
0
 def testClusterAllocationOneDimensionDataLinkCentroid(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(
         type_link.CENTROID_LINK, False)
コード例 #41
0
 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); 
コード例 #42
0
 def testTwoClusterAllocationTheSameObjectLinkSingle(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(10, 2, type_link.SINGLE_LINK, False); 
コード例 #43
0
 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);
コード例 #44
0
 def testClusterAllocationOneDimensionDataLinkAverage(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(
         type_link.AVERAGE_LINK, False)
コード例 #45
0
 def testClusteringSampleSimple1LinkComplete(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.COMPLETE_LINK, [5, 5], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, type_link.COMPLETE_LINK, [10], False);
コード例 #46
0
 def testClusterAllocationOneDimensionDataLinkComplete(self):
     AgglomerativeTestTemplates.templateClusterAllocationOneDimensionData(
         type_link.COMPLETE_LINK, False)
コード例 #47
0
 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);
コード例 #48
0
 def testTwoClusterAllocationTheSameObjectsLinkAverage(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(
         10, 2, type_link.AVERAGE_LINK, False)
コード例 #49
0
 def testClusteringSampleSimple2LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, type_link.SINGLE_LINK, [5, 8, 10], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, type_link.SINGLE_LINK, [23], False);
コード例 #50
0
 def testTwoClusterAllocationTheSameObjectLinkComplete(self):
     AgglomerativeTestTemplates.templateClusterAllocationTheSameObjects(
         10, 2, type_link.COMPLETE_LINK, False)
コード例 #51
0
 def testProcessingWhenLibraryCoreCorrupted(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.AVERAGE_LINK, [5, 5], True);
コード例 #52
0
 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);
コード例 #53
0
 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);
コード例 #54
0
 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);
コード例 #55
0
 def runCorruptedLibraryCoreTest(self):
     AgglomerativeTestTemplates.templateClusteringResults(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, type_link.AVERAGE_LINK, [5, 5],
         True)
コード例 #56
0
 def testClusteringSampleSimple3LinkSingle(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, type_link.SINGLE_LINK, [10, 10, 10, 30], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 1, type_link.SINGLE_LINK, [60], False);
コード例 #57
0
 def testClusteringSampleSimple4LinkAverage(self):
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 5, type_link.AVERAGE_LINK, [15, 15, 15, 15, 15], False);
     AgglomerativeTestTemplates.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, type_link.AVERAGE_LINK, [75], False);