The simplest test is based on the following: a kernel function is valid if and only if the kernel matrix for any particular set of data points has all non-negative eigenvalues. You can easily verify this by taking a sufficiently large set of data points and simply checking to see if this is true. For example, if you accidentally select 2000 data samples, create your own 2000x2000 kernel matrix, and notice that it has non-negative eigenvalues, then it is very likely that you have a legitimate kernel. Alternatively, if there are any negative eigenvalues, then the candidate-box-function is definitely not a legitimate core.
Davis king
source share