gaussian_kernel: calculated the gaussian kernel matrix
Description
calculated the gaussian kernel matrix
Usage
gaussian_kernel(x, gamma, x_test = NULL)
Value
k - A n x m kernel matrix and dis_mat - A n x m distance matrix
Arguments
- x
A d x n training data matrix
- gamma
kernel parameter
- x_test
A d x m testing data matrix