Skip to content

Commit 3a0e0db

Browse files
authored
New version, updating to latest Python and dependencies (#460)
* new version Signed-off-by: Amit Sharma <amit_sharma@live.com> * fixed ohe_min_max test error Signed-off-by: Amit Sharma <amit_sharma@live.com> * fixed max lines issue Signed-off-by: Amit Sharma <amit_sharma@live.com> --------- Signed-off-by: Amit Sharma <amit_sharma@live.com>
1 parent 7a55aab commit 3a0e0db

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Ramaravind, Amit, Chenhao'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.11'
25+
release = '0.12'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/source/dice_ml.explainer_interfaces.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ dice\_ml.explainer\_interfaces.dice\_tensorflow2 module
5252
:undoc-members:
5353
:show-inheritance:
5454

55+
dice\_ml.explainer\_interfaces.dice\_xgboost module
56+
---------------------------------------------------
57+
58+
.. automodule:: dice_ml.explainer_interfaces.dice_xgboost
59+
:members:
60+
:undoc-members:
61+
:show-inheritance:
62+
5563
dice\_ml.explainer\_interfaces.explainer\_base module
5664
-----------------------------------------------------
5765

docs/source/dice_ml.model_interfaces.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ dice\_ml.model\_interfaces.pytorch\_model module
2828
:undoc-members:
2929
:show-inheritance:
3030

31+
dice\_ml.model\_interfaces.xgboost\_model module
32+
------------------------------------------------
33+
34+
.. automodule:: dice_ml.model_interfaces.xgboost_model
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
3139
Module contents
3240
---------------
3341

docs/update_docs.sh

100644100755
File mode changed.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import setuptools
22

3-
VERSION_STR = "0.11"
3+
VERSION_STR = "0.12"
44

55
with open("README.rst", "r") as fh:
66
long_description = fh.read()
@@ -37,6 +37,7 @@
3737
"Programming Language :: Python :: 3.9",
3838
"Programming Language :: Python :: 3.10",
3939
"Programming Language :: Python :: 3.11",
40+
"Programming Language :: Python :: 3.12",
4041
"License :: OSI Approved :: MIT License",
4142
"Operating System :: OS Independent",
4243
],

tests/test_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import numpy as np
12
import pytest
23

34
import dice_ml
@@ -71,7 +72,8 @@ def test_ohe_min_max_transformed_query_instance(self, sample_adultincome_query):
7172
output_query = [0.068, 0.449, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0,
7273
0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0]
7374
d = self.d[0]
74-
prepared_query = d.get_ohe_min_max_normalized_data(query_instance=sample_adultincome_query).iloc[0].tolist()
75+
prepared_query = \
76+
d.get_ohe_min_max_normalized_data(query_instance=sample_adultincome_query).iloc[0].to_numpy(dtype=np.float64)
7577
assert output_query == pytest.approx(prepared_query, abs=1e-3)
7678

7779
def test_encoded_categorical_features(self):

0 commit comments

Comments
 (0)