コード例 #1
0
    def test_fuzzy2(self, nx):
        from lingpy.algorithm.clustering import fuzzy

        for method in 'upgma simple complete'.split():
            for revert in [True, False]:
                fuzzy(0.5, [[1, 0], [0, 1]], ['a', 'b'],
                      method=method,
                      revert=revert)
コード例 #2
0
 def test_fuzzy(self):
     from lingpy.algorithm.clustering import fuzzy
     for method in 'upgma simple complete'.split():
         for revert in [True, False]:
             fuzzy(0.5,
                   self.matrix,
                   self.taxa,
                   method=method,
                   revert=revert)
コード例 #3
0
    def test_fuzzy1(self):
        from lingpy.algorithm.clustering import fuzzy

        assert fuzzy(0.5, [[1, 0], [0, 1]], ['a', 'b']) is None
コード例 #4
0
    def test_fuzzy2(self, nx):
        from lingpy.algorithm.clustering import fuzzy

        for method in 'upgma simple complete'.split():
            for revert in [True, False]:
                fuzzy(0.5, [[1, 0], [0, 1]], ['a', 'b'], method=method, revert=revert)
コード例 #5
0
    def test_fuzzy1(self):
        from lingpy.algorithm.clustering import fuzzy

        assert fuzzy(0.5, [[1, 0], [0, 1]], ['a', 'b']) is None
コード例 #6
0
ファイル: test_clustering.py プロジェクト: xrotwang/lingpy
 def test_fuzzy(self):
     from lingpy.algorithm.clustering import fuzzy
     for method in 'upgma simple complete'.split():
         for revert in [True, False]:
             fuzzy(0.5, self.matrix, self.taxa, method=method, revert=revert)