Skip to content

Commit

Permalink
[python] dalex v1.7.0; remove python 3.7 to fix pandas
Browse files Browse the repository at this point in the history
closes #558
  • Loading branch information
hbaniecki committed Feb 28, 2024
1 parent b1548c4 commit d21aaf4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
26 changes: 14 additions & 12 deletions python/dalex/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
## Changelog


### v1.6.1 (2024-02-28)
### v1.7.0 (2024-02-28)

* Added `keras.src.models.sequential.Sequential` to classes with a known `predict_function`; it should fix changes in `keras==3.0.0` and `tensorflow==2.16.0`
* Turn off `verbose` in the predict method of tensorflow/keras models that [changed](https://stackoverflow.com/a/73244830) in `tensorflow>=2.9.0`
* Fix an error occuring in `predict_profile()` when a DataFrame has MultiIndex in `pandas>=1.3.0` ([#550](https://github.com/ModelOriented/DALEX/pull/550))
* Fix gaussian `norm()` calculation in `model_profile()` from `pi*sqrt(2)` to `sqrt(2*pi)`
* Fix a warning (future error) between `prepare_numerical_categorical()` and `prepare_x()` with `pandas==2.1.0`
* Fix a warning (future error) concerning the default value of `numeric_only` in `pandas.DataFrame.corr()` in `dalex.aspect.calculate_assoc_matrix()`
* increase the dependencies to `python>=3.8`, `pandas>=1.5.0`, `numpy>=1.23.3` and add `python==3.11` to CI
* added `keras.src.models.sequential.Sequential` to classes with a known `predict_function`; it should fix changes in `keras==3.0.0` and `tensorflow==2.16.0`
* turn off `verbose` in the predict method of tensorflow/keras models that [changed](https://stackoverflow.com/a/73244830) in `tensorflow>=2.9.0`
* update the warning occurring when specifying `variable_splits` ([#558](https://github.com/ModelOriented/DALEX/pull/558))
* fix an error occuring in `predict_profile()` when a DataFrame has MultiIndex in `pandas>=1.3.0` ([#550](https://github.com/ModelOriented/DALEX/pull/550))
* fix gaussian `norm()` calculation in `model_profile()` from `pi*sqrt(2)` to `sqrt(2*pi)`
* fix a warning (future error) between `prepare_numerical_categorical()` and `prepare_x()` with `pandas==2.1.0`
* fix a warning (future error) concerning the default value of `numeric_only` in `pandas.DataFrame.corr()` in `dalex.aspect.calculate_assoc_matrix()`


### v1.6.0 (2023-02-16)

* Add `ZeroDivisionError` to precision and recall functions ([#532](https://github.com/ModelOriented/DALEX/pull/532))
* Add a warning to `calculate_depend_matrix()` when there is a variable with only one value ([#537](https://github.com/ModelOriented/DALEX/issues/537))
* Fix missing EDA plots in (Python) Arena ([#544](https://github.com/ModelOriented/DALEX/issues/544))
* Fix baseline positions in the subplots of the predict parts explanations: BreakDown, Shap ([#545](https://github.com/ModelOriented/DALEX/pull/545))
* add `ZeroDivisionError` to precision and recall functions ([#532](https://github.com/ModelOriented/DALEX/pull/532))
* add a warning to `calculate_depend_matrix()` when there is a variable with only one value ([#537](https://github.com/ModelOriented/DALEX/issues/537))
* fix missing EDA plots in (Python) Arena ([#544](https://github.com/ModelOriented/DALEX/issues/544))
* fix baseline positions in the subplots of the predict parts explanations: BreakDown, Shap ([#545](https://github.com/ModelOriented/DALEX/pull/545))


### v1.5.0 (2022-09-07)

*This release consists of mostly maintenance updates and, after a year, marks the Beta -> Stable release.*

* increase the dependency from `python>=3.6` to `python>=3.7` (at this moment, both `numpy` and `pandas` depend on `python>=3.8`), and add `python>=3.10` to CI
* increase the dependency from `python>=3.6` to `python>=3.7` (at this moment, both `numpy` and `pandas` depend on `python>=3.8`), and add `python==3.10` to CI
* increase the dependencies to `pandas>=1.2.5`, `numpy>=1.20.3` ([#526](https://github.com/ModelOriented/DALEX/issues/526)), `scipy>=1.6.3`, `plotly>=5.1.0`, and `tqdm>=4.61.2` due to errors with `pandas` (see [tqdm/#1199](https://github.com/tqdm/tqdm/issues/1199))
* remove the use of `pd.Series.append()` ([#489](https://github.com/ModelOriented/DALEX/issues/489))
* remove the use of `np.isnan` causing error in `dalex.fairness` ([#491](https://github.com/ModelOriented/DALEX/issues/491))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def check_variables(variables, explainer, variable_splits):
variables_ = deepcopy(variables)
if variable_splits is not None:
variables_ = variable_splits.keys()
warnings.warn("Variables taken from variables_splits")
warnings.warn("Parameter `variable_splits` overrides `variables`. Variables taken from `variables_splits.keys()`.")
elif variables_ is not None and isinstance(variables_, (list, np.ndarray, pd.Series)):
if not set(variables_).issubset(explainer.data.columns):
raise ValueError('Invalid variable names')
Expand Down
8 changes: 4 additions & 4 deletions python/dalex/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,25 @@ def run_setup():
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
install_requires=[
'setuptools',
'pandas>=1.2.5',
'numpy>=1.20.3',
'pandas>=1.5.0',
'numpy>=1.23.3',
'scipy>=1.6.3',
'plotly>=5.1.0',
'tqdm>=4.61.2',
],
extras_require={'full': extras_require},
packages=find_packages(include=["dalex", "dalex.*"]),
python_requires='>=3.7',
python_requires='>=3.8',
include_package_data=True
)

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[tox]
envlist = py{37,38,39,310}-{linux,macos,windows}
envlist = py{38,39,310,311}-{linux,macos,windows}
toxworkdir={toxinidir}/python/dalex/.tox
temp_dir={toxinidir}/python/dalex/.tmp
setupdir={toxinidir}/python/dalex/
skip_missing_interpreters=true

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[gh-actions:env]
PLATFORM =
Expand Down

0 comments on commit d21aaf4

Please sign in to comment.