Given a dataset, kernel function, and tuning parameter, will return the n x n kernel matrix
get_kernel_matrix(data, kern = "g", param1 = 1, param2 = 1)An n x n matrix for data given by the specified kernel. The value
in position (i, j) corresponds to the kernel function evaluated at data[i, ]
and data[j, ].
data vector
the kernel to use, one of ('gaussian', 'poly', 'sigmoid', 'laplacian'), can use first letter
first parameter to pass to kernel function.
second parameter to pass to kernel function.