Description Usage Arguments Value Examples
This function creates a single gramm matrix for traning set based upon several types of kernels.
1 |
x |
Matrix of predictors |
kernel |
Type of kernel used to compute a gramm matrix |
sigma |
Hyperparameters for radial kernels |
degree, scale |
Hyperparameter for polynomial kernel |
Gramm matrix
1 2 3 4 5 6 7 | library(kernlab)
data(benchmark.data)
example.data=benchmark.data[[1]]
#Generate linear kernel matrix
gramm(example.data[,1:2],'linear',0,0,0)
#Generate radial kernel matrices with different values for the hyperparameter.
gramm(example.data[,1:2],'radial',2^seq(-3:0),0,0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.