Skip to content

Commit

Permalink
🚀 new release + fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed May 2, 2024
1 parent 5190a37 commit 8d09bce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
isort = isort powershap tests
black = black powershap tests
isort = poetry run isort powershap tests
black = poetry run black powershap tests

.PHONY: format
format:
Expand All @@ -8,7 +8,7 @@ format:

.PHONY: lint
lint:
ruff powershap tests
poetry run ruff powershap tests
$(isort) --check-only --df
$(black) --check --diff

Expand Down
2 changes: 1 addition & 1 deletion powershap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The init file for PowerShap

__author__ = "Jarne Verhaeghe, Jeroen Van Der Donckt"
__version__ = "0.0.9"
__version__ = "0.0.10"

from .powershap import PowerShap

Expand Down
1 change: 0 additions & 1 deletion powershap/shap_wrappers/shap_explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ def _fit_get_shap(self, X_train, Y_train, X_val, Y_val, random_seed, **kwargs) -
import tensorflow as tf

# tf.compat.v1.disable_v2_behavior() # https://github.com/slundberg/shap/issues/2189

# Fit the model
PowerShap_model = tf.keras.models.clone_model(self.model)
metrics = kwargs.get("nn_metric")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "powershap"
version = "0.0.9"
version = "0.0.10"
description = "Feature selection using statistical significance of shap values"
authors = ["Jarne Verhaeghe, Jeroen Van Der Donckt"]
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions tests/test_deep_learning_powershap.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

# tf.compat.v1.enable_eager_execution()


def test_deep_learning_class_powershap(dummy_classification):
X, y = dummy_classification
n_informative = sum([c.startswith("informative") for c in X.columns])
Expand Down

0 comments on commit 8d09bce

Please sign in to comment.