Newly tracked file
snorkel/analysis/error_analysis.py
changed.
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% |
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.