.. currentmodule:: shap .. _api_examples: API Examples ---------------- These examples parallel the namespace structure of SHAP. Each object or function in SHAP has a corresponding example notebook here that demonstrates its API usage. The source notebooks are `available on GitHub `_. .. toctree:: :glob: :maxdepth: 1 example_notebooks/api_examples/migrating-to-new-api.ipynb .. _explainers_examples: explainers ========== *See also:* :ref:`Explainer API Reference `. .. toctree:: :glob: :maxdepth: 1 example_notebooks/api_examples/explainers/* .. _maskers_examples: maskers ======= *See also:* :ref:`Masker API Reference `. .. toctree:: :glob: :maxdepth: 1 example_notebooks/api_examples/maskers/* .. _models_examples: models ====== .. Examples for members of :ref:`shap.models `. Work in progress. .. TODO: Uncomment this toctree once we have at least one example to share .. toctree:: :glob: :maxdepth: 1 example_notebooks/api_examples/models/* .. _plots_examples: plots ===== *See also:* :ref:`Plot API Reference `. .. toctree:: :glob: :maxdepth: 1 example_notebooks/api_examples/plots/*