Skip to content

Commit

Permalink
adds set_shap_values to explainer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oegedijk committed Dec 8, 2021
1 parent d6a3666 commit dfbf9bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/source/explainers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ You can set the precision of the calculated shap values, predictions, etc, in
order to save on memory usage. Default is ``'float64'``, but ``'float32'`` is probably
fine, maybe even ``'float16'`` for your application.

Pre-calculated shap values
==========================

Perhaps you already have calculated the shap values somewhere, or you can calculate
them off on a giant cluster somewhere, or your model supports `GPU generated shap values <https://github.com/rapidsai/gputreeshap>`_.

You can simply add these pre-calculated shap values to the explainer with
``explainer.set_shap_values()`` and ``explainer.set_shap_interaction_values()`` methods.


Plots
=====

Expand Down

0 comments on commit dfbf9bb

Please sign in to comment.