From d1e6db4f1ebcfb39c230dcb5eb5c7da7c503ac38 Mon Sep 17 00:00:00 2001 From: tongyu <119610311+tongyu0924@users.noreply.github.com> Date: Tue, 4 Jul 2023 02:56:30 +0800 Subject: [PATCH 1/2] DOC Add dropdowns to module 2.8. Density Estimation --- doc/modules/density.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/modules/density.rst b/doc/modules/density.rst index fc0530ed262c0..4e09479273653 100644 --- a/doc/modules/density.rst +++ b/doc/modules/density.rst @@ -113,6 +113,10 @@ forms, which are shown in the following figure: .. centered:: |kde_kernels| +|details-start| +**kernels details** +|details-split| + The form of these kernels is as follows: * Gaussian kernel (``kernel = 'gaussian'``) @@ -139,6 +143,8 @@ The form of these kernels is as follows: :math:`K(x; h) \propto \cos(\frac{\pi x}{2h})` if :math:`x < h` +|details-end| + The kernel density estimator can be used with any of the valid distance metrics (see :class:`~sklearn.metrics.DistanceMetric` for a list of available metrics), though the results are properly normalized only From 4737baf41f1fdbe79d2274f95252525655cd44bb Mon Sep 17 00:00:00 2001 From: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:55:28 +0200 Subject: [PATCH 2/2] Update doc/modules/density.rst --- doc/modules/density.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/modules/density.rst b/doc/modules/density.rst index 4e09479273653..5a9b456010aa3 100644 --- a/doc/modules/density.rst +++ b/doc/modules/density.rst @@ -114,7 +114,7 @@ forms, which are shown in the following figure: .. centered:: |kde_kernels| |details-start| -**kernels details** +**kernels' mathematical expressions** |details-split| The form of these kernels is as follows: