8000 DOC fix the equation in gaussian_process.kernels.ExpSineSquared (#9224) · AishwaryaRK/scikit-learn@306151d · GitHub
[go: up one dir, main page]

Skip to content

Commit 306151d

Browse files
qinhanmin2014AishwaryaRK
authored andcommitted
DOC fix the equation in gaussian_process.kernels.ExpSineSquared (scikit-learn#9224)
1 parent 16cb20a commit 306151d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/gaussian_process/kernels.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,8 @@ class ExpSineSquared(StationaryKernelMixin, NormalizedKernelMixin, Kernel):
15121512
parameter periodicity>0. Only the isotropic variant where l is a scalar is
15131513
supported at the moment. The kernel given by:
15141514
1515-
k(x_i, x_j) = exp(-2 sin(\pi / periodicity * d(x_i, x_j)) / length_scale)^2
1515+
k(x_i, x_j) =
1516+
exp(-2 (sin(\pi / periodicity * d(x_i, x_j)) / length_scale) ^ 2)
15161517
15171518
.. versionadded:: 0.18
15181519

0 commit comments

Comments
 (0)
0