Skip to content

Commit e8a15d5

Browse files
qinhanmin2014ogrisel
authored andcommitted
DOC fix the equation in gaussian_process.kernels.ExpSineSquared (scikit-learn#9224)
1 parent 4749355 commit e8a15d5

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)