Skip to content

Commit

Permalink
fixed 4th ref; lined up integrals in pdp theory
Browse files Browse the repository at this point in the history
  • Loading branch information
lshpaner committed Sep 9, 2024
1 parent 9c3316b commit 4873884
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 41 deletions.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/usage_guide.doctree
Binary file not shown.
12 changes: 7 additions & 5 deletions docs/_sources/usage_guide.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3213,10 +3213,12 @@ in :math:`\mathbf{X}_S` on the model's predictions, while averaging out the
influence of the features in :math:`\mathbf{X}_C`. This is mathematically defined as:

.. math::
\begin{align*}
\text{PD}_{\mathbf{X}_S}(x_S) &= \mathbb{E}_{\mathbf{X}_C} \left[ f(x_S, \mathbf{X}_C) \right] \\
&= \int f(x_S, x_C) \, p(x_C) \, dx_C \\
&= \int \left( \int f(x_S, x_C) \, p(x_C \mid x_S) \, dx_C \right) p(x_S) \, dx_S
\end{align*}
\text{PD}_{\mathbf{X}_S}(x_S) = \mathbb{E}_{\mathbf{X}_C} \left[ f(x_S, \mathbf{X}_C) \right]
= \int f(x_S, x_C) \, p(x_C) \, dx_C \\
= \int \left( \int f(x_S, x_C) \, p(x_C \mid x_S) \, dx_C \right) p(x_S) \, dx_S
where:

Expand Down Expand Up @@ -3341,7 +3343,7 @@ The ``plot_2d_pdp`` function generates 2D partial dependence plots for individua
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Consider a scenario where you have a machine learning model predicting median
house values in California [4]_. Suppose you want to understand how non-location
house values in California. [4]_ Suppose you want to understand how non-location
features like the average number of occupants per household (``AveOccup``) and the
age of the house (``HouseAge``) jointly influence house values. A 2D partial
dependence plot allows you to visualize this relationship in two ways: either as
Expand Down Expand Up @@ -3602,7 +3604,7 @@ The ``plot_3d_pdp`` function extends the concept of partial dependence to three
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Consider a scenario where you have a machine learning model predicting median
house values in California [4]_. Suppose you want to understand how non-location
house values in California.[4]_ Suppose you want to understand how non-location
features like the average number of occupants per household (``AveOccup``) and the
age of the house (``HouseAge``) jointly influence house values. A 3D partial
dependence plot allows you to visualize this relationship in a more comprehensive
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions docs/usage_guide.html

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions source/usage_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3213,10 +3213,12 @@ in :math:`\mathbf{X}_S` on the model's predictions, while averaging out the
influence of the features in :math:`\mathbf{X}_C`. This is mathematically defined as:

.. math::
\begin{align*}
\text{PD}_{\mathbf{X}_S}(x_S) &= \mathbb{E}_{\mathbf{X}_C} \left[ f(x_S, \mathbf{X}_C) \right] \\
&= \int f(x_S, x_C) \, p(x_C) \, dx_C \\
&= \int \left( \int f(x_S, x_C) \, p(x_C \mid x_S) \, dx_C \right) p(x_S) \, dx_S
\end{align*}
\text{PD}_{\mathbf{X}_S}(x_S) = \mathbb{E}_{\mathbf{X}_C} \left[ f(x_S, \mathbf{X}_C) \right]
= \int f(x_S, x_C) \, p(x_C) \, dx_C \\
= \int \left( \int f(x_S, x_C) \, p(x_C \mid x_S) \, dx_C \right) p(x_S) \, dx_S
where:

Expand Down Expand Up @@ -3341,7 +3343,7 @@ The ``plot_2d_pdp`` function generates 2D partial dependence plots for individua
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Consider a scenario where you have a machine learning model predicting median
house values in California [4]_. Suppose you want to understand how non-location
house values in California. [4]_ Suppose you want to understand how non-location
features like the average number of occupants per household (``AveOccup``) and the
age of the house (``HouseAge``) jointly influence house values. A 2D partial
dependence plot allows you to visualize this relationship in two ways: either as
Expand Down Expand Up @@ -3602,7 +3604,7 @@ The ``plot_3d_pdp`` function extends the concept of partial dependence to three
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Consider a scenario where you have a machine learning model predicting median
house values in California [4]_. Suppose you want to understand how non-location
house values in California.[4]_ Suppose you want to understand how non-location
features like the average number of occupants per household (``AveOccup``) and the
age of the house (``HouseAge``) jointly influence house values. A 3D partial
dependence plot allows you to visualize this relationship in a more comprehensive
Expand Down

0 comments on commit 4873884

Please sign in to comment.