From ac0776d3d51ecec9ba2b07fe61a6ed8000ccf648 Mon Sep 17 00:00:00 2001 From: Yao Xiao <108576690+Charlie-XIAO@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:33:32 +0800 Subject: [PATCH] DOC solve some sphinx errors when updating to pydata-sphinx-theme --- doc/modules/ensemble.rst | 2 ++ examples/release_highlights/plot_release_highlights_1_4_0.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/modules/ensemble.rst b/doc/modules/ensemble.rst index 334e00e35a848..ee8cac3e715c2 100644 --- a/doc/modules/ensemble.rst +++ b/doc/modules/ensemble.rst @@ -286,10 +286,12 @@ model. For a predictor :math:`F` with two features: - a **monotonic increase constraint** is a constraint of the form: + .. math:: x_1 \leq x_1' \implies F(x_1, x_2) \leq F(x_1', x_2) - a **monotonic decrease constraint** is a constraint of the form: + .. math:: x_1 \leq x_1' \implies F(x_1, x_2) \geq F(x_1', x_2) diff --git a/examples/release_highlights/plot_release_highlights_1_4_0.py b/examples/release_highlights/plot_release_highlights_1_4_0.py index d8112699e04ed..0d2924d9e8bb4 100644 --- a/examples/release_highlights/plot_release_highlights_1_4_0.py +++ b/examples/release_highlights/plot_release_highlights_1_4_0.py @@ -155,7 +155,7 @@ # ------------------------ # Many meta-estimators and cross-validation routines now support metadata # routing, which are listed in the :ref:`user guide -# <_metadata_routing_models>`. For instance, this is how you can do a nested +# `. For instance, this is how you can do a nested # cross-validation with sample weights and :class:`~model_selection.GroupKFold`: import sklearn from sklearn.metrics import get_scorer