Showing 1 of 1 files from the diff.

@@ -61,7 +61,7 @@
Loading
61 61
def get_label_instances(
62 62
    bucket: Tuple[int, ...], x: np.ndarray, *y: np.ndarray
63 63
) -> np.ndarray:
64 -
    """Return instances in x with the specified combination of labels
64 +
    """Return instances in x with the specified combination of labels.
65 65
66 66
    Parameters
67 67
    ----------
@@ -89,13 +89,13 @@
Loading
89 89
    >>> Y_gold = np.array([1, 1, 1])
90 90
    >>> Y_pred = np.array([1, 0, 0])
91 91
    >>> bucket = (1, 0)
92 -
    
93 -
    The returned NumPy array of data instances from ``x`` will correspond to 
94 -
    the rows where the first list had a 1 and the second list had a 0. 
92 +
93 +
    The returned NumPy array of data instances from ``x`` will correspond to
94 +
    the rows where the first list had a 1 and the second list had a 0.
95 95
    >>> get_label_instances(bucket, x.to_numpy(), Y_gold, Y_pred)
96 96
    array([['a second string', '2'],
97 97
           ['a third string', '3']], dtype=object)
98 -
    
98 +
99 99
    More generally, given bucket ``(i, j, ...)`` and lists ``y1, y2, ...``
100 100
    the returned data instances from ``x`` will correspond to the rows where
101 101
    y1 had label i, y2 had label j, and so on. Note that ``x`` and ``y``
Files Coverage
snorkel 97.21%
Project Totals (68 files) 97.21%
346.2
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=coverage,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