Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Aug 2, 2022
1 parent cb9f123 commit 6a2682c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion causalnlp/key_driver_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 1 addition & 13 deletions nbs/03_key_driver_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6a2682c

Please sign in to comment.