Exemple #1
0
 def test_cluster_allocation_simple13(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE13,
         [[1.35, 1.21, 0.0], [3.79, 4.21, 0.0]], 2.0, [5, 5], True)
Exemple #2
0
 def test_cluster_allocation_simple09(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE9,
                                          [[4.0], [8.0]], 2.0, [10, 20],
                                          True)
Exemple #3
0
 def test_cluster_allocation_simple11(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE11, [[1.0, 0.6, 0.8], [4.1, 4.2, 4.3]],
         2.0, [10, 10], True)
Exemple #4
0
 def test_cluster_allocation_simple04(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE4,
         [[1.5, 0.0], [1.5, 2.0], [1.5, 4.0], [1.5, 6.0], [1.5, 8.0]], 2.0,
         [15, 15, 15, 15, 15], True)
Exemple #5
0
 def test_cluster_allocation_fcps_hepta(self):
     fcm_test_template.cluster_allocation(
         FCPS_SAMPLES.SAMPLE_HEPTA,
         [[-0.06, 0.02, 0.02], [2.41, 0.49, 0.03], [-2.69, 0.34, 0.29],
          [0.49, 2.89, 0.78], [-0.60, -2.31, 0.05], [-0.15, 0.77, 3.23],
          [-0.50, 0.43, -2.60]], 2.0, [30, 30, 30, 30, 30, 30, 32], False)
Exemple #6
0
 def test_cluster_allocation_simple01(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                          [[3.7, 5.5], [6.7, 7.5]], 2.0,
                                          [5, 5], True)
Exemple #7
0
 def test_cluster_allocation_simple01_wrong_amount(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
         [[3.7, 5.5], [4.7, 6.5], [3.4, 6.4]], 2.0, [2, 3, 5], True)
Exemple #8
0
 def test_cluster_allocation_simple01_centers_are_points2(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.936690, 5.663041], [6.968136, 7.755556]], 2.0, [5, 5], False)
Exemple #9
0
 def test_cluster_allocation_simple01_wrong_amount(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.7, 5.5], [4.7, 6.5], [3.4, 6.4]], 2.0, [2, 3, 5], False)
Exemple #10
0
 def test_cluster_allocation_simple01_one_cluster(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.7, 5.5]], 2.0, [10], False)
Exemple #11
0
 def test_cluster_allocation_simple01_centers_are_points1(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.768699, 5.364477], [6.593196, 7.850364]], 2.0, [5, 5], False)
Exemple #12
0
 def test_cluster_allocation_simple01(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[3.7, 5.5], [6.7, 7.5]], 2.0, [5, 5], False)
Exemple #13
0
 def test_cluster_allocation_fcps_hepta_wrong_amount(self):
     fcm_test_template.cluster_allocation(FCPS_SAMPLES.SAMPLE_HEPTA,
                                          [[-0.06,0.02, 0.02], [2.41, 0.49, 0.03], [-2.69, 0.34, 0.29], [0.49, 2.89, 0.78], [-0.60, -2.31, 0.05], [-0.50, 0.43, -2.60]],
                                          2.0, [30, 30, 30, 30, 30, 62], False)
Exemple #14
0
 def test_cluster_allocation_tetra(self):
     fcm_test_template.cluster_allocation(FCPS_SAMPLES.SAMPLE_TETRA, [[1.001, -0.083, -0.681], [-0.811, 0.476, -0.759], [-0.956, -1.427, -0.020], [0.225, 0.560, 1.794]], 2.0, [100, 100, 100, 100], False)
Exemple #15
0
 def test_cluster_allocation_famous_oldfaithful(self):
     fcm_test_template.cluster_allocation(
         FAMOUS_SAMPLES.SAMPLE_OLD_FAITHFUL, [[4.0, 70], [1.0, 48]], 2.0,
         None, True)
Exemple #16
0
 def test_cluster_allocation_simple02(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, [[3.5, 4.8], [6.9, 7], [7.5, 0.5]], 2.0, [10, 5, 8], False)
Exemple #17
0
 def test_cluster_allocation_tetra(self):
     fcm_test_template.cluster_allocation(
         FCPS_SAMPLES.SAMPLE_TETRA,
         [[1.001, -0.083, -0.681], [-0.811, 0.476, -0.759],
          [-0.956, -1.427, -0.020], [0.225, 0.560, 1.794]], 2.0,
         [100, 100, 100, 100], True)
Exemple #18
0
 def test_cluster_allocation_simple02_wrong_amount(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, [[3.5, 4.8], [6.9, 7], [7.5, 0.5], [4.5, 6.2]], 2.0, [4, 5, 6, 8], False)
Exemple #19
0
 def test_cluster_allocation_simple01_centers_are_points1(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
         [[3.768699, 5.364477], [6.593196, 7.850364]], 2.0, [5, 5], True)
Exemple #20
0
 def test_cluster_allocation_simple03(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, [[0.2, 0.1], [4.0, 1.0], [2.0, 2.0], [2.3, 3.9]], 2.0, [10, 10, 10, 30], False)
Exemple #21
0
 def test_cluster_allocation_simple02_wrong_amount(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE2,
         [[3.5, 4.8], [6.9, 7], [7.5, 0.5], [4.5, 6.2]], 2.0, [4, 5, 6, 8],
         True)
Exemple #22
0
 def test_cluster_allocation_simple04(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, [[1.5, 0.0], [1.5, 2.0], [1.5, 4.0], [1.5, 6.0], [1.5, 8.0]], 2.0, [15, 15, 15, 15, 15], False)
Exemple #23
0
 def test_cluster_allocation_simple06(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE6,
                                          [[2.0, 6.0], [8.5, 4.5]], 2.0,
                                          [20, 21], True)
Exemple #24
0
 def test_cluster_allocation_simple05(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, [[0.0, 1.0], [0.0, 0.0], [1.0, 1.0], [1.0, 0.0]], 2.0, [15, 15, 15, 15], False)
Exemple #25
0
 def test_cluster_allocation_simple08(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE8,
                                          [[-4.0], [3.1], [6.1], [12.0]],
                                          2.0, [15, 30, 20, 80], True)
Exemple #26
0
 def test_cluster_allocation_simple06(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE6, [[2.0, 6.0], [8.5, 4.5]], 2.0, [20, 21], False)
Exemple #27
0
 def test_cluster_allocation_simple10(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE10,
         [[0.426, 0.065], [5.462, 6.529], [9.539, 11.379]], 2.0,
         [11, 11, 11], True)
Exemple #28
0
 def test_cluster_allocation_simple07(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, [[-3.0], [2.0]], 2.0, [10, 10], False)
Exemple #29
0
 def test_cluster_allocation_simple12(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE12,
         [[1.0, 1.0], [2.5, 2.5], [4.0, 4.0]], 2.0, [5, 5, 5], True)
Exemple #30
0
 def test_cluster_allocation_simple08(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE8, [[-4.0], [3.1], [6.1], [12.0]], 2.0, [15, 30, 20, 80], False)
Exemple #31
0
 def test_cluster_allocation_simple14(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE14,
                                          [[5.649, 5.199]], 2.0, [41], True)
Exemple #32
0
 def test_cluster_allocation_simple09(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, [[4.0], [8.0]], 2.0, [10, 20], False)
Exemple #33
0
 def test_cluster_allocation_two_diamonds(self):
     fcm_test_template.cluster_allocation(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS,
                                          [[0.71 - 0.51], [0.99 - 0.24]],
                                          2.0, [400, 400], True)
Exemple #34
0
 def test_cluster_allocation_simple10(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, [[0.426, 0.065 ], [5.462, 6.529], [9.539, 11.379]], 2.0, [11, 11, 11], False)
Exemple #35
0
 def test_cluster_allocation_fcps_hepta_wrong_amount(self):
     fcm_test_template.cluster_allocation(
         FCPS_SAMPLES.SAMPLE_HEPTA,
         [[-0.06, 0.02, 0.02], [2.41, 0.49, 0.03], [-2.69, 0.34, 0.29],
          [0.49, 2.89, 0.78], [-0.60, -2.31, 0.05], [-0.50, 0.43, -2.60]],
         2.0, [30, 30, 30, 30, 30, 62], True)
Exemple #36
0
 def test_cluster_allocation_simple11(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, [[1.0, 0.6, 0.8], [4.1, 4.2, 4.3]], 2.0, [10, 10], False)
Exemple #37
0
 def test_cluster_allocation_simple01_one_cluster(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                          [[3.7, 5.5]], 2.0, [10], True)
Exemple #38
0
 def test_cluster_allocation_simple12(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, [[1.0, 1.0], [2.5, 2.5], [4.0, 4.0]], 2.0, [5, 5, 5], False)
Exemple #39
0
 def test_cluster_allocation_simple01_centers_are_points2(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
         [[3.936690, 5.663041], [6.968136, 7.755556]], 2.0, [5, 5], True)
Exemple #40
0
 def test_cluster_allocation_simple13(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, [[1.35, 1.21, 0.0], [3.79, 4.21, 0.0]], 2.0, [5, 5], False)
Exemple #41
0
 def test_cluster_allocation_simple02(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE2, [[3.5, 4.8], [6.9, 7], [7.5, 0.5]],
         2.0, [10, 5, 8], True)
Exemple #42
0
 def test_cluster_allocation_simple14(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE14, [[5.649, 5.199]], 2.0, [41], False)
Exemple #43
0
 def test_cluster_allocation_simple03(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE3,
         [[0.2, 0.1], [4.0, 1.0], [2.0, 2.0], [2.3, 3.9]], 2.0,
         [10, 10, 10, 30], True)
Exemple #44
0
 def test_cluster_allocation_famous_oldfaithful(self):
     fcm_test_template.cluster_allocation(FAMOUS_SAMPLES.SAMPLE_OLD_FAITHFUL, [[4.0, 70], [1.0, 48]], 2.0, None, False)
Exemple #45
0
 def test_cluster_allocation_simple05(self):
     fcm_test_template.cluster_allocation(
         SIMPLE_SAMPLES.SAMPLE_SIMPLE5,
         [[0.0, 1.0], [0.0, 0.0], [1.0, 1.0], [1.0, 0.0]], 2.0,
         [15, 15, 15, 15], True)
Exemple #46
0
 def test_cluster_allocation_two_diamonds(self):
     fcm_test_template.cluster_allocation(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS, [[0.71 -0.51], [0.99 -0.24]], 2.0, [400, 400], False)
Exemple #47
0
 def test_cluster_allocation_simple07(self):
     fcm_test_template.cluster_allocation(SIMPLE_SAMPLES.SAMPLE_SIMPLE7,
                                          [[-3.0], [2.0]], 2.0, [10, 10],
                                          True)
Exemple #48
0
 def test_cluster_allocation_fcps_hepta(self):
     fcm_test_template.cluster_allocation(FCPS_SAMPLES.SAMPLE_HEPTA,
                                          [[-0.06, 0.02, 0.02], [2.41, 0.49, 0.03], [-2.69, 0.34, 0.29], [0.49, 2.89, 0.78], [-0.60, -2.31, 0.05], [-0.15, 0.77, 3.23], [-0.50, 0.43, -2.60]],
                                          2.0, [30, 30, 30, 30, 30, 30, 32], True)