.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_lcpl_explainer.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_lcpl_explainer.py: ========================================= Explaining Local Classifier Per Level ========================================= A minimalist example showing how to use HiClass Explainer to obtain SHAP values of LCPL model. A detailed summary of the Explainer class has been given at Algorithms Overview Section for :ref:`Hierarchical Explainability`. SHAP values are calculated based on a synthetic platypus diseases dataset that can be downloaded `here `_. .. GENERATED FROM PYTHON SOURCE LINES 11-60 .. image-sg:: /auto_examples/images/sphx_glr_plot_lcpl_explainer_001.png :alt: plot lcpl explainer :srcset: /auto_examples/images/sphx_glr_plot_lcpl_explainer_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Dimensions: (class: 15, level: 3, sample: 246, feature: 9) Coordinates: * class (class) ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_lcpl_explainer.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_