8000 Correct formulas in Doc of Gaussian Process Kernels (#8571) · scikit-learn/scikit-learn@7d1afd7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d1afd7

Browse files
rishikksh20MechCoder
authored andcommitted
Correct formulas in Doc of Gaussian Process Kernels (#8571)
Correct the Rational quadratic kernel and ExpSineSquare kernel formulas. Issue: #8553
1 parent cd66c5a commit 7d1afd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/gaussian_process.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ Only the isotropic variant where :math:`l` is a scalar is supported at the momen
551551
The kernel is given by:
552552

553553
.. math::
554-
k(x_i, x_j) = \left(1 + \frac{d(x_i, x_j)^2}{2\alpha l^2}\right)^\alpha
554+
k(x_i, x_j) = \left(1 + \frac{d(x_i, x_j)^2}{2\alpha l^2}\right)^{-\alpha}
555555
556556
The prior and posterior of a GP resulting from an RBF kernel are shown in
557557
the following figure:
@@ -569,7 +569,7 @@ It is parameterized by a length-scale parameter :math:`l>0` and a periodicity pa
569569
The kernel is given by:
570570

571571
.. math::
572-
k(x_i, x_j) = \text{exp}\left(-2 \text{sin}(\pi / p * d(x_i, x_j)) / l\right)^2
572+
k(x_i, x_j) = \text{exp}\left(-2 \left(\text{sin}(\pi / p * d(x_i, x_j)) / l\right)^2\right)
573573
574574
The prior and posterior of a GP resulting from an ExpSineSquared kernel are shown in
575575
the following figure:

0 commit comments

Comments
 (0)
0