From b9218238b0b97924545aae339827757e6d7397a9 Mon Sep 17 00:00:00 2001 From: j-ittner Date: Wed, 17 May 2023 09:51:20 +0200 Subject: [PATCH] =?UTF-8?q?DOC:=20replace=20'*'=20with=20'\cdot'=20in=20La?= =?UTF-8?q?TeX=20formul=C3=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/facet/data/partition/_partition.py | 2 +- src/facet/inspection/shap/_shap.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/facet/data/partition/_partition.py b/src/facet/data/partition/_partition.py index a81f41b5..2c5b34ff 100644 --- a/src/facet/data/partition/_partition.py +++ b/src/facet/data/partition/_partition.py @@ -215,7 +215,7 @@ def fit( # type: ignore[override] as optional arguments. If no bounds are provided, the partitioner automatically chooses the lower and upper outlier thresholds based on the Tukey test, i.e., - :math:`[- 1.5 * \mathit{iqr}, 1.5 * \mathit{iqr}]` + :math:`[- 1.5 \cdot \mathit{iqr}, 1.5 \cdot \mathit{iqr}]` where :math:`\mathit{iqr}` is the inter-quartile range. :param values: a sequence of observed values as the empirical basis for diff --git a/src/facet/inspection/shap/_shap.py b/src/facet/inspection/shap/_shap.py index 8ccca330..dfd3a4ac 100644 --- a/src/facet/inspection/shap/_shap.py +++ b/src/facet/inspection/shap/_shap.py @@ -200,7 +200,7 @@ def fit( def shap_values(self) -> pd.DataFrame: r""" The SHAP values per observation and feature, with shape - :math:`(n_\mathrm{observations}, n_\mathrm{outputs} * n_\mathrm{features})` + :math:`(n_\mathrm{observations}, n_\mathrm{outputs} \cdot n_\mathrm{features})` """ assert self.shap_ is not None, ASSERTION__CALCULATOR_IS_FITTED @@ -214,8 +214,8 @@ def shap_values(self) -> pd.DataFrame: def shap_interaction_values(self) -> pd.DataFrame: r""" The SHAP interaction values per observation and feature pair, with shape - :math:`(n_\mathrm{observations} * n_\mathrm{features}, n_\mathrm{outputs} * - n_\mathrm{features})` + :math:`(n_\mathrm{observations} \cdot n_\mathrm{features}, n_\mathrm{outputs} + \cdot n_\mathrm{features})` :raise AttributeError: this SHAP calculator does not support interaction values """ @@ -231,7 +231,7 @@ def main_effects(self) -> pd.DataFrame: r""" The main effects per observation and featuren (i.e., the diagonals of the interaction matrices), with shape - :math:`(n_\mathrm{observations}, n_\mathrm{outputs} * n_\mathrm{features})`. + :math:`(n_\mathrm{observations}, n_\mathrm{outputs} \cdot n_\mathrm{features})`. :raise AttributeError: this SHAP calculator does not support interaction values """