From 6a2682c117855935f746598fc29958434946380a Mon Sep 17 00:00:00 2001 From: Arun Maiya Date: Tue, 2 Aug 2022 11:38:04 -0400 Subject: [PATCH] bump --- CHANGELOG.md | 12 ++++++++++++ causalnlp/key_driver_analysis.py | 2 +- nbs/03_key_driver_analysis.ipynb | 14 +------------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93ba29a..b8efaf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ Most recent releases are shown at the top. Each release shows: - **Changed**: Additional parameters, changes to inputs or outputs, etc - **Fixed**: Bug fixes that don't change documented behaviour +## 0.7.0 (2022-08-02) + +### New: +- N/A + +### Changed +- updated dependencies + +### Fixed: +- N/A + + ## 0.6.0 (2021-10-20) ### New: diff --git a/causalnlp/key_driver_analysis.py b/causalnlp/key_driver_analysis.py index df12b68..f890af9 100644 --- a/causalnlp/key_driver_analysis.py +++ b/causalnlp/key_driver_analysis.py @@ -101,7 +101,7 @@ def importances(self, plot=True, split_pct=0.2, import shap except ImportError: raise ImportError('Please install shap (conda recommended): '+\ - 'conda search shap --channel conda-forge') + 'conda install shap --channel conda-forge') explainer = shap.KernelExplainer(rf.predict, X_test[:shap_background_size,:]) shap_values = explainer.shap_values(X_test[:shap_background_size,:]) if plot: diff --git a/nbs/03_key_driver_analysis.ipynb b/nbs/03_key_driver_analysis.ipynb index 69777c8..83abb83 100644 --- a/nbs/03_key_driver_analysis.ipynb +++ b/nbs/03_key_driver_analysis.ipynb @@ -163,7 +163,7 @@ " import shap\n", " except ImportError:\n", " raise ImportError('Please install shap (conda recommended): '+\\\n", - " 'conda search shap --channel conda-forge')\n", + " 'conda install shap --channel conda-forge')\n", " explainer = shap.KernelExplainer(rf.predict, X_test[:shap_background_size,:])\n", " shap_values = explainer.shap_values(X_test[:shap_background_size,:])\n", " if plot:\n", @@ -600,18 +600,6 @@ "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.13" } }, "nbformat": 4,