.. _sphx_glr_auto_examples_inspection: .. _inspection_examples: Inspection ---------- Examples related to the :mod:`sklearn.inspection` module. .. raw:: html <div class="sphx-glr-thumbnails"> .. raw:: html <div class="sphx-glr-thumbcontainer" tooltip="In linear models, the target value is modeled as a linear combination of the features (see the ..."> .. only:: html .. image:: /auto_examples/inspection/images/thumb/sphx_glr_plot_linear_model_coefficient_interpretation_thumb.png :alt: :ref:`sphx_glr_auto_examples_inspection_plot_linear_model_coefficient_interpretation.py` .. raw:: html <div class="sphx-glr-thumbnail-title">Common pitfalls in the interpretation of coefficients of linear models</div> </div> .. raw:: html <div class="sphx-glr-thumbcontainer" tooltip="Machine Learning models are great for measuring statistical associations. Unfortunately, unless..."> .. only:: html .. image:: /auto_examples/inspection/images/thumb/sphx_glr_plot_causal_interpretation_thumb.png :alt: :ref:`sphx_glr_auto_examples_inspection_plot_causal_interpretation.py` .. raw:: html <div class="sphx-glr-thumbnail-title">Failure of Machine Learning to infer causal effects</div> </div> .. raw:: html <div class="sphx-glr-thumbcontainer" tooltip="Partial dependence plots show the dependence between the target function [2]_ and a set of feat..."> .. only:: html .. image:: /auto_examples/inspection/images/thumb/sphx_glr_plot_partial_dependence_thumb.png :alt: :ref:`sphx_glr_auto_examples_inspection_plot_partial_dependence.py` .. raw:: html <div class="sphx-glr-thumbnail-title">Partial Dependence and Individual Conditional Expectation Plots</div> </div> .. raw:: html <div class="sphx-glr-thumbcontainer" tooltip="In this example, we will compare the impurity-based feature importance of RandomForestClassifie..."> .. only:: html .. image:: /auto_examples/inspection/images/thumb/sphx_glr_plot_permutation_importance_thumb.png :alt: :ref:`sphx_glr_auto_examples_inspection_plot_permutation_importance.py` .. raw:: html <div class="sphx-glr-thumbnail-title">Permutation Importance vs Random Forest Feature Importance (MDI)</div> </div> .. raw:: html <div class="sphx-glr-thumbcontainer" tooltip="In this example, we compute the permutation_importance of the features to a trained RandomFores..."> .. only:: html .. image:: /auto_examples/inspection/images/thumb/sphx_glr_plot_permutation_importance_multicollinear_thumb.png :alt: :ref:`sphx_glr_auto_examples_inspection_plot_permutation_importance_multicollinear.py` .. raw:: html <div class="sphx-glr-thumbnail-title">Permutation Importance with Multicollinear or Correlated Features</div> </div> .. raw:: html </div> .. toctree:: :hidden: /auto_examples/inspection/plot_linear_model_coefficient_interpretation /auto_examples/inspection/plot_causal_interpretation /auto_examples/inspection/plot_partial_dependence /auto_examples/inspection/plot_permutation_importance /auto_examples/inspection/plot_permutation_importance_multicollinear