Пример #1
0
 def test_clustering_sample_simple_5(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 8, 0,
                                     [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 7, 0,
                                     [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 6, 0,
                                     [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 5, 0,
                                     [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 1, 0,
                                     [60], 0, False)
Пример #2
0
 def test_clustering_sample_simple_2(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 7, 0,
                                     [5, 8, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 6, 0,
                                     [5, 8, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, 0,
                                     [23], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 6, 500,
                                     [], 23, False)
Пример #3
0
 def test_clustering_sample_simple_10(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 8, 0,
                                     [11, 11, 11], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 7, 0,
                                     [11, 11, 11], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 2, 0,
                                     [33], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 1, 0,
                                     [33], 0, False)
Пример #4
0
 def test_clustering_sample_simple_1(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 8, 0,
                                     [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 7, 0,
                                     [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 6, 0,
                                     [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 5, 0,
                                     [5, 5], 0, False)
Пример #5
0
 def test_clustering_similar_points(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 8, 0,
                                     [5, 5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 7, 0,
                                     [5, 5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 5, 0,
                                     [5, 5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, 0,
                                     [15], 0, False)
Пример #6
0
 def test_clustering_sample_simple_3(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 9, 0,
                                     [10, 10, 10, 30], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 8, 0,
                                     [10, 10, 10, 30], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 1, 0,
                                     [60], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 6, 500,
                                     [], 60, False)
Пример #7
0
 def test_clustering_zero_column(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 3, 0,
                                     [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 2, 0,
                                     [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 1, 0,
                                     [10], 0, False)
Пример #8
0
 def test_clustering_sample_simple_1_noise_only(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 6, 1000,
                                     [], 10, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 6, 10,
                                     [], 10, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 5,
                                     [], 10, False)
Пример #9
0
 def test_clustering_three_dimensional_data1(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 6, 0,
                                     [10, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 5, 0,
                                     [10, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 1, 0,
                                     [20], 0, False)
Пример #10
0
 def test_clustering_one_dimensional_data1(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 4, 0,
                                     [10, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 2, 0,
                                     [20], 0, False)
Пример #11
0
 def test_clustering_one_dimensional_data_3_similar(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 7, 0, [10, 20], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, 0, [30], 0, False)
Пример #12
0
 def test_clustering_sample_simple_10(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 8, 0, [11, 11, 11], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 7, 0, [11, 11, 11], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 2, 0, [33], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 1, 0, [33], 0, False)
Пример #13
0
 def test_clustering_fcps_hepta_by_core(self):
     clique_test_template.clustering(FCPS_SAMPLES.SAMPLE_HEPTA, 9, 0, [30, 30, 30, 30, 30, 30, 32], 0, True)
Пример #14
0
 def test_clustering_one_dimensional_data2(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE8, 15, 0, [15, 20, 30, 80], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE8, 2, 0, [145], 0, False)
Пример #15
0
 def test_processing_when_library_core_corrupted(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 8, 0,
                                     [5, 5], 0, True)
Пример #16
0
 def test_clustering_fcps_lsun(self):
     clique_test_template.clustering(FCPS_SAMPLES.SAMPLE_LSUN, 15, 0, [100, 101, 202], 0, False)
Пример #17
0
 def test_clustering_fcps_lsun(self):
     clique_test_template.clustering(FCPS_SAMPLES.SAMPLE_LSUN, 15, 0,
                                     [100, 101, 202], 0, False)
Пример #18
0
 def test_clustering_sample_simple_4_one_cluster_by_core(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 0,
                                     [75], 0, True)
Пример #19
0
 def test_clustering_sample_simple_1_noise_only(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 6, 1000, [], 10, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 6, 10, [], 10, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 5, [], 10, False)
Пример #20
0
 def test_clustering_sample_simple_2(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 7, 0, [5, 8, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 6, 0, [5, 8, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, 0, [23], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 6, 500, [], 23, False)
Пример #21
0
 def test_clustering_diagonal_blocks_arent_neoghbors(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 0, [5, 5], 0, False)
Пример #22
0
 def test_clustering_sample_simple_1(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 8, 0, [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 7, 0, [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 6, 0, [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 5, 0, [5, 5], 0, False)
Пример #23
0
 def test_clustering_fcps_hepta(self):
     clique_test_template.clustering(FCPS_SAMPLES.SAMPLE_HEPTA, 9, 0, [30, 30, 30, 30, 30, 30, 32], 0, False)
Пример #24
0
 def test_clustering_one_dimensional_data2(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE8, 15, 0,
                                     [15, 20, 30, 80], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE8, 2, 0,
                                     [145], 0, False)
Пример #25
0
 def test_clustering_fcps_hepta_by_core(self):
     clique_test_template.clustering(FCPS_SAMPLES.SAMPLE_HEPTA, 9, 0,
                                     [30, 30, 30, 30, 30, 30, 32], 0, True)
Пример #26
0
 def test_clustering_one_dimensional_data_3_similar(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 7, 0,
                                     [10, 20], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, 0,
                                     [30], 0, False)
Пример #27
0
 def test_clustering_similar_points(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 8, 0, [5, 5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 7, 0, [5, 5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 5, 0, [5, 5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 2, 0, [15], 0, False)
Пример #28
0
 def test_clustering_sample_simple_4_one_cluster_by_core(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 0, [75], 0, True)
Пример #29
0
 def test_clustering_zero_column(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 3, 0, [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 2, 0, [5, 5], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 1, 0, [10], 0, False)
Пример #30
0
 def test_clustering_sample_simple_3(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 9, 0, [10, 10, 10, 30], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 8, 0, [10, 10, 10, 30], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 1, 0, [60], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 6, 500, [], 60, False)
Пример #31
0
 def test_clustering_three_dimensional_data1(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 6, 0, [10, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 5, 0, [10, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 1, 0, [20], 0, False)
Пример #32
0
 def test_clustering_fcps_hepta(self):
     clique_test_template.clustering(FCPS_SAMPLES.SAMPLE_HEPTA, 9, 0,
                                     [30, 30, 30, 30, 30, 30, 32], 0, False)
Пример #33
0
 def test_clustering_sample_simple_3_one_point_noise(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 2, 9, [59], 1, False)
Пример #34
0
 def test_clustering_diagonal_blocks_arent_neoghbors(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 0,
                                     [5, 5], 0, False)
Пример #35
0
 def test_clustering_sample_simple_4_one_cluster(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 0,
                                     [75], 0, False)
Пример #36
0
 def test_clustering_sample_simple_4_one_cluster(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 0, [75], 0, False)
Пример #37
0
 def test_processing_when_library_core_corrupted(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 8, 0, [5, 5], 0, True)
Пример #38
0
 def test_clustering_sample_simple_3_one_point_noise(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 2, 9,
                                     [59], 1, False)
Пример #39
0
 def test_clustering_sample_simple_5(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 8, 0, [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 7, 0, [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 6, 0, [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 5, 0, [15, 15, 15, 15], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 1, 0, [60], 0, False)
Пример #40
0
 def test_clustering_one_dimensional_data1(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 4, 0, [10, 10], 0, False)
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 2, 0, [20], 0, False)
Пример #41
0
 def run_removed_library_core_test(self):
     clique_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 8, 0,
                                     [5, 5], 0, True)