shaypal5 / skift
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -180,7 +180,12 @@
Loading
180 180
181 181
    @staticmethod
182 182
    def _clean_label(ft_label):
183 -
        return int(ft_label[9:])
183 +
        try:
184 +
            res = int(ft_label[9:])
185 +
        except ValueError:
186 +
            res = ft_label[9:]
187 +
188 +
        return res
184 189
185 190
    def _predict_on_str_arr(self, str_arr, k=1):
186 191
        return (self.model.predict(text, k) for text in str_arr)
@@ -211,7 +216,7 @@
Loading
211 216
        return np.array([
212 217
            self._clean_label(res[0][0])
213 218
            for res in self._predict(X)
214 -
        ], dtype=np.float_)
219 +
        ])
215 220
216 221
    def _format_probas(self, result):
217 222
        lbl_prob_pairs = zip(result[0], result[1])
@@ -265,7 +270,7 @@
Loading
265 270
        >>> clf.fit(df[['txt']], df['lbl']);
266 271
        FirstColFtClassifier(epoch=10, lr=0.3)
267 272
        >>> clf.predict([['meow meow meow']])
268 -
        array([1.])
273 +
        array([1])
269 274
        >>> from lime.lime_text import LimeTextExplainer;
270 275
        >>> explainer = LimeTextExplainer(bow=False)
271 276
        >>> exp = explainer.explain_instance(
Files Coverage
skift 98.49%
Project Totals (2 files) 98.49%
1
codecov:
2
  notify:
3
      require_ci_to_pass: yes
4

5
coverage:
6
  precision: 2
7
  round: down
8
  range: "70...100"
9
  ignore: Tests
10
  status:
11
    patch:
12
      default:
13
        target: '80'
14
    project: false
15

16
comment:
17
  layout: header, changes, diff
18
    behavior: default
19
    require_changes: false
20
    branches: null
21
    flags: null
22
    paths: null
23

24
ignore:
25
  - "versioneer.py"
26
  - "tests"
27
  - "**/_version.py"
28
  - "**/__init__.py"
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