Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Ramaravind, Amit, Chenhao'

# The full version, including alpha/beta/rc tags
release = '0.11'
release = '0.12'


# -- General configuration ---------------------------------------------------
Expand Down
8 changes: 8 additions & 0 deletions docs/source/dice_ml.explainer_interfaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ dice\_ml.explainer\_interfaces.dice\_tensorflow2 module
:undoc-members:
:show-inheritance:

dice\_ml.explainer\_interfaces.dice\_xgboost module
---------------------------------------------------

.. automodule:: dice_ml.explainer_interfaces.dice_xgboost
:members:
:undoc-members:
:show-inheritance:

dice\_ml.explainer\_interfaces.explainer\_base module
-----------------------------------------------------

Expand Down
8 changes: 8 additions & 0 deletions docs/source/dice_ml.model_interfaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ dice\_ml.model\_interfaces.pytorch\_model module
:undoc-members:
:show-inheritance:

dice\_ml.model\_interfaces.xgboost\_model module
------------------------------------------------

.. automodule:: dice_ml.model_interfaces.xgboost_model
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

Expand Down
Empty file modified docs/update_docs.sh
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setuptools

VERSION_STR = "0.11"
VERSION_STR = "0.12"

with open("README.rst", "r") as fh:
long_description = fh.read()
Expand Down Expand Up @@ -37,6 +37,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
Expand Down
4 changes: 3 additions & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import numpy as np
import pytest

import dice_ml
Expand Down Expand Up @@ -71,7 +72,8 @@ def test_ohe_min_max_transformed_query_instance(self, sample_adultincome_query):
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,
0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0]
d = self.d[0]
prepared_query = d.get_ohe_min_max_normalized_data(query_instance=sample_adultincome_query).iloc[0].tolist()
prepared_query = \
d.get_ohe_min_max_normalized_data(query_instance=sample_adultincome_query).iloc[0].to_numpy(dtype=np.float64)
assert output_query == pytest.approx(prepared_query, abs=1e-3)

def test_encoded_categorical_features(self):
Expand Down
Loading