From 3010e9abf20c62526a52e6d26143f12bd1e4140c Mon Sep 17 00:00:00 2001 From: Simon Nilsson Date: Tue, 10 Oct 2023 13:35:42 -0400 Subject: [PATCH] Update train_model_mixin.py --- simba/mixins/train_model_mixin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simba/mixins/train_model_mixin.py b/simba/mixins/train_model_mixin.py index 682988260..13f14a437 100644 --- a/simba/mixins/train_model_mixin.py +++ b/simba/mixins/train_model_mixin.py @@ -770,6 +770,9 @@ def create_shap_log( .. note:: For improved run-times, use multiprocessing through :meth:`simba.mixins.train_model_mixins.TrainModelMixin.create_shap_log_mp` + .. math:: + $$\phi_i(f, x) = \sum_{S \subseteq F \setminus {i}} \frac{|S|!(|F| - |S| - 1)!}{|F|!} (f_{S \cup {i}}(x_{S \cup {i}}) - f_S(x_S))$$ + :param str ini_file_path: Path to the SimBA project_config.ini :param RandomForestClassifier rf_clf: sklearn random forest classifier :param pd.DataFrame x_df: Test features.