From 71a28d6236f2c9c29bcbf348640b34d32f476fc7 Mon Sep 17 00:00:00 2001 From: Jeong-Yoon Lee Date: Wed, 8 Nov 2023 09:18:47 -0800 Subject: [PATCH 1/2] fix inconsistent the section titles of example notebooks --- docs/examples/binary_policy_learner_example.ipynb | 2 +- docs/examples/dr_learner_with_synthetic_data.ipynb | 8 ++++---- docs/examples/feature_interpretations_example.ipynb | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/examples/binary_policy_learner_example.ipynb b/docs/examples/binary_policy_learner_example.ipynb index 7def9bdf..d02540db 100644 --- a/docs/examples/binary_policy_learner_example.ipynb +++ b/docs/examples/binary_policy_learner_example.ipynb @@ -80,7 +80,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Binary treatment policy learning" + "## Binary treatment policy learning" ] }, { diff --git a/docs/examples/dr_learner_with_synthetic_data.ipynb b/docs/examples/dr_learner_with_synthetic_data.ipynb index f3c7230f..8156a85b 100644 --- a/docs/examples/dr_learner_with_synthetic_data.ipynb +++ b/docs/examples/dr_learner_with_synthetic_data.ipynb @@ -72,7 +72,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Synthetic Data Generation" + "## Synthetic Data Generation" ] }, { @@ -88,7 +88,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Comparing DR Learner with X Learner" + "## Comparing DR Learner with X Learner" ] }, { @@ -171,7 +171,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Synthetic Data with Hidden Confounder" + "## Synthetic Data with Hidden Confounder" ] }, { @@ -211,7 +211,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Comparing X Learner, DR Learner, and DRIV Learner" + "## Comparing X Learner, DR Learner, and DRIV Learner" ] }, { diff --git a/docs/examples/feature_interpretations_example.ipynb b/docs/examples/feature_interpretations_example.ipynb index a9c01e9b..d8180f61 100644 --- a/docs/examples/feature_interpretations_example.ipynb +++ b/docs/examples/feature_interpretations_example.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Meta-Learners Interpretation with Feature Importance and SHAP Values" + "# Model Interpretation with Feature Importance and SHAP Values" ] }, { @@ -2172,7 +2172,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Uplift Tree/Forest" + "## Uplift Tree/Forest" ] }, { From 88e3e1b50fa2363d72c752a1f7ac62b2c09de134 Mon Sep 17 00:00:00 2001 From: Jeong-Yoon Lee Date: Wed, 8 Nov 2023 09:27:07 -0800 Subject: [PATCH 2/2] update docs/conf.py to resolve a Unicode error --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 383aa27b..4bc740cf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -207,6 +207,10 @@ # -- Options for LaTeX output ------------------------------------------ +# To resolve a Unicode error as suggested in +# https://docs.readthedocs.io/en/stable/guides/pdf-non-ascii-languages.html +latex_engine = "xelatex" + latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # 'papersize': 'letterpaper',