Skip to content

Commit 02d1ea3

Browse files
committed
Merge branch 'keras-gradcam-text' of github.com:teabolt/eli5 into pytorch-gradcam
2 parents 9c8d7c6 + ec0f51c commit 02d1ea3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+464
-345
lines changed

CHANGES.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Changelog
22
=========
33

4+
0.10.1 (2019-08-29)
5+
-------------------
6+
7+
* Don't include typing dependency on Python 3.5+
8+
to fix installation on Python 3.7
9+
10+
0.10.0 (2019-08-21)
11+
-------------------
12+
13+
* Keras image classifiers: explaining predictions with Grad-CAM
14+
(GSoC-2019 project by @teabolt).
15+
416
0.9.0 (2019-07-05)
517
------------------
618

eli5/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import
33

4-
__version__ = '0.9.0'
4+
__version__ = '0.10.1'
55

66
from .formatters import (
77
format_as_html,
@@ -96,6 +96,7 @@
9696
except ImportError:
9797
# keras is not available
9898
pass
99+
<<<<<<< HEAD
99100

100101

101102
try:
@@ -104,4 +105,6 @@
104105
)
105106
except ImportError:
106107
# pytorch is not available
107-
pass
108+
pass
109+
=======
110+
>>>>>>> ec0f51c60aaf360327ca18e3e0cdae2222cec6bf

eli5/_feature_names.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Union, Callable, Pattern
66
)
77

8-
import numpy as np # type: ignore
9-
import scipy.sparse as sp # type: ignore
8+
import numpy as np
9+
import scipy.sparse as sp
1010

1111

1212
class FeatureNames(Sized, Iterable):

eli5/_feature_weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import
33

4-
import numpy as np # type: ignore
4+
import numpy as np
55

66
from eli5.base import FeatureWeights, FeatureWeight
77
from .utils import argsort_k_largest_positive, argsort_k_smallest, mask

eli5/_graphviz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
import graphviz # type: ignore
2+
import graphviz
33

44

55
def is_supported():

eli5/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from typing import Any, List, Tuple, Union, Optional
33

4-
import numpy as np # type: ignore
4+
import numpy as np
55

66
from .base_utils import attrs
77
from .formatters.features import FormattedFeatureName

eli5/base_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import inspect
22

3-
import attr # type: ignore
3+
import attr
44

55
try:
6-
from functools import singledispatch # type: ignore
6+
from functools import singledispatch
77
except ImportError:
88
from singledispatch import singledispatch # type: ignore
99

eli5/catboost.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import, division
22

3-
import numpy as np # type: ignore
4-
import catboost # type: ignore
3+
import numpy as np
4+
import catboost
55

66
from eli5.explain import explain_weights
77
from eli5._feature_importances import get_feature_importance_explanation

eli5/formatters/as_dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Any, Dict, List, Optional
33
import warnings
44

5-
import pandas as pd # type: ignore
5+
import pandas as pd
66

77
import eli5
88
from eli5.base import (

eli5/formatters/as_dict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import six
22

3-
import attr # type: ignore
4-
import numpy as np # type: ignore
3+
import attr
4+
import numpy as np
55

66
from .features import FormattedFeatureName
77

0 commit comments

Comments
 (0)