Skip to content

Commit

Permalink
Fix precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMeissnerDS committed Aug 19, 2024
1 parent 750abf4 commit dce9510
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions bluecast/blueprints/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,11 @@ def fit(self, df: pd.DataFrame, target_col: str) -> None:
shap_waterfall_plot(
explainer, self.conf_training.shap_waterfall_indices, self.class_problem
)
if self.conf_training.show_dependence_plots_of_top_n_features > 0:
shap_dependence_plots(
shap_values,
x_test,
self.conf_training.show_dependence_plots_of_top_n_features,
)
shap_dependence_plots(
shap_values,
x_test,
self.conf_training.show_dependence_plots_of_top_n_features,
)
self.prediction_mode = True

def fit_eval(
Expand Down
11 changes: 5 additions & 6 deletions bluecast/blueprints/cast_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,11 @@ def fit(self, df: pd.DataFrame, target_col: str) -> None:
shap_waterfall_plot(
explainer, self.conf_training.shap_waterfall_indices, self.class_problem
)
if self.conf_training.show_dependence_plots_of_top_n_features > 0:
shap_dependence_plots(
shap_values,
x_test,
self.conf_training.show_dependence_plots_of_top_n_features,
)
shap_dependence_plots(
shap_values,
x_test,
self.conf_training.show_dependence_plots_of_top_n_features,
)
self.prediction_mode = True

def fit_eval(
Expand Down
Binary file modified dist/bluecast-1.6.0-py3-none-any.whl
Binary file not shown.
Binary file modified dist/bluecast-1.6.0.tar.gz
Binary file not shown.

0 comments on commit dce9510

Please sign in to comment.