doc: formula miss
authorAlanli <alanli7991@outlook.com>
Thu, 16 Apr 2020 00:05:00 +0000 (09:05 +0900)
committerAlanli <alanli7991@outlook.com>
Thu, 16 Apr 2020 00:05:00 +0000 (09:05 +0900)
doc/py_tutorials/py_ml/py_svm/py_svm_basics/py_svm_basics.markdown

index 7f1f395..c8dbe39 100644 (file)
@@ -83,7 +83,7 @@ Let us define a kernel function \f$K(p,q)\f$ which does a dot product between tw
 \begin{aligned}
 K(p,q)  = \phi(p).\phi(q) &= \phi(p)^T \phi(q) \\
                           &= (p_{1}^2,p_{2}^2,\sqrt{2} p_1 p_2).(q_{1}^2,q_{2}^2,\sqrt{2} q_1 q_2) \\
-                          &= p_1 q_1 + p_2 q_2 + 2 p_1 q_1 p_2 q_2 \\
+                          &= p_{1}^2 q_{1}^2 + p_{2}^2 q_{2}^2 + 2 p_1 q_1 p_2 q_2 \\
                           &= (p_1 q_1 + p_2 q_2)^2 \\
           \phi(p).\phi(q) &= (p.q)^2
 \end{aligned}