snorkel-team / snorkel

@@ -198,7 +198,7 @@
Loading
198 198
                    [
199 199
                        j
200 200
                        for j in self.c_tree.nodes()
201 -
                        if i in self.c_tree.node[j]["members"]
201 +
                        if i in self.c_tree.nodes[j]["members"]
202 202
                    ]
203 203
                ),
204 204
            )
@@ -212,7 +212,7 @@
Loading
212 212
            L_aug = np.copy(L_ind)
213 213
            for item in chain(self.c_tree.nodes(), self.c_tree.edges()):
214 214
                if isinstance(item, int):
215 -
                    C = self.c_tree.node[item]
215 +
                    C = self.c_tree.nodes[item]
216 216
                elif isinstance(item, tuple):
217 217
                    C = self.c_tree[item[0]][item[1]]
218 218
                else:

@@ -8,7 +8,7 @@
Loading
8 8
    Given a set of int nodes i and edges (i,j), returns a clique tree.
9 9
10 10
    Clique tree is an object G for which:
11 -
    - G.node[i]['members'] contains the set of original nodes in the ith
11 +
    - G.nodes[i]['members'] contains the set of original nodes in the ith
12 12
        maximal clique
13 13
    - G[i][j]['members'] contains the set of original nodes in the seperator
14 14
        set between maximal cliques i and j
@@ -46,7 +46,7 @@
Loading
46 46
        G2.add_node(i, members=c)
47 47
    for i in G2.nodes:
48 48
        for j in G2.nodes:
49 -
            S = G2.node[i]["members"].intersection(G2.node[j]["members"])
49 +
            S = G2.nodes[i]["members"].intersection(G2.nodes[j]["members"])
50 50
            w = len(S)
51 51
            if w > 0:
52 52
                G2.add_edge(i, j, weight=w, members=S)
Files Coverage
snorkel 97.32%
Project Totals (68 files) 97.32%
407.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=coverage,complex,spark,doctest,type,check
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: 95%
6
    patch:
7
      default:
8
        threshold: 2%
9

10
comment:
11
  layout: "header, diff, flags, files"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading