Skip to content

Commit 213bd82

Browse files
committed
move api directory to core
1 parent 40e2f2c commit 213bd82

24 files changed

Lines changed: 33 additions & 33 deletions

python/interpret-core/interpret-core.pyproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
<Content Include="pyproject.toml" />
3333
</ItemGroup>
3434
<ItemGroup>
35-
<Compile Include="interpret\api\base.py" />
36-
<Compile Include="interpret\api\templates.py" />
37-
<Compile Include="interpret\api\__init__.py" />
35+
<Compile Include="interpret\core\base.py" />
36+
<Compile Include="interpret\core\templates.py" />
37+
<Compile Include="interpret\core\__init__.py" />
3838
<Compile Include="interpret\blackbox\_lime.py" />
3939
<Compile Include="interpret\blackbox\_partialdependence.py" />
4040
<Compile Include="interpret\blackbox\_sensitivity.py" />
@@ -110,8 +110,8 @@
110110
<Compile Include="interpret\_version.py" />
111111
<Compile Include="interpret\__init__.py" />
112112
<Compile Include="setup.py" />
113-
<Compile Include="tests\api\test_base.py" />
114-
<Compile Include="tests\api\__init__.py" />
113+
<Compile Include="tests\core\test_base.py" />
114+
<Compile Include="tests\core\__init__.py" />
115115
<Compile Include="tests\blackbox\test_permutationimportance.py" />
116116
<Compile Include="tests\blackbox\test_sensitivity.py" />
117117
<Compile Include="tests\blackbox\__init__.py" />
@@ -162,7 +162,7 @@
162162
</ItemGroup>
163163
<ItemGroup>
164164
<Folder Include="interpret" />
165-
<Folder Include="interpret\api" />
165+
<Folder Include="interpret\core" />
166166
<Folder Include="interpret\blackbox" />
167167
<Folder Include="interpret\data" />
168168
<Folder Include="interpret\ext" />
@@ -182,7 +182,7 @@
182182
<Folder Include="interpret\visual" />
183183
<Folder Include="interpret\visual\assets" />
184184
<Folder Include="tests\" />
185-
<Folder Include="tests\api\" />
185+
<Folder Include="tests\core\" />
186186
<Folder Include="tests\blackbox\" />
187187
<Folder Include="tests\ext\" />
188188
<Folder Include="tests\glassbox\" />

python/interpret-core/interpret/blackbox/_lime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import numpy as np
55

6-
from ..api.base import LocalExplainer
7-
from ..api.templates import FeatureValueExplanation
6+
from ..core.base import LocalExplainer
7+
from ..core.templates import FeatureValueExplanation
88
from ..utils._clean_simple import clean_dimensions, typify_classification
99
from ..utils._clean_x import preclean_X
1010
from ..utils._explanation import gen_local_selector, gen_name_from_class, gen_perf_dicts

python/interpret-core/interpret/blackbox/_partialdependence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import numpy as np
55

6-
from ..api.base import GlobalExplainer, BaseExplanation
6+
from ..core.base import GlobalExplainer, BaseExplanation
77
from ..utils._clean_x import preclean_X
88
from ..utils._explanation import gen_global_selector, gen_name_from_class
99
from ..utils._unify_data import unify_data

python/interpret-core/interpret/blackbox/_permutationimportance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#
1010
# from ..utils import gen_name_from_class, gen_local_selector
1111
#
12-
# from interpret.api.base import GlobalExplainerMixin
13-
# from interpret.api.templates import FeatureValueExplanation
12+
# from interpret.core.base import GlobalExplainerMixin
13+
# from interpret.core.templates import FeatureValueExplanation
1414
# from interpret.utils import unify_predict_fn, unify_data
1515
# from interpret.utils import gen_name_from_class, gen_global_selector
1616
#

python/interpret-core/interpret/blackbox/_sensitivity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import numpy as np
77

8-
from ..api.base import GlobalExplainer
9-
from ..api.templates import FeatureValueExplanation
8+
from ..core.base import GlobalExplainer
9+
from ..core.templates import FeatureValueExplanation
1010
from ..utils._clean_x import preclean_X
1111
from ..utils._explanation import gen_global_selector, gen_name_from_class
1212
from ..utils._unify_data import unify_data

python/interpret-core/interpret/blackbox/_shap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Distributed under the MIT software license
33
import numpy as np
44

5-
from ..api.base import LocalExplainer
5+
from ..core.base import LocalExplainer
66
from ..utils._clean_x import preclean_X
77
from ..utils._shap_common import shap_explain_local
88
from ..utils._unify_data import unify_data
File renamed without changes.
File renamed without changes.
File renamed without changes.

python/interpret-core/interpret/data/_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import numpy as np
55

6-
from ..api.base import DataExplainer, BaseExplanation
6+
from ..core.base import DataExplainer, BaseExplanation
77
from ..utils._clean_simple import clean_dimensions, typify_classification
88
from ..utils._clean_x import preclean_X
99
from ..utils._explanation import gen_global_selector, gen_name_from_class

0 commit comments

Comments
 (0)