Description Usage Arguments Details Value See Also
This function fit a Multi-class Kernel Logistic Regression model to the data (y, x) using some pre-specified kernel. The return list contains the estimated kernel weights as well as the original data to perform predictions.There are
two types of kernel, they are 'RBF' and 'polynomial'
1 2 3 4 5 6 7 8 9 10 11 |
y |
A |
x |
A |
kernel |
The kernel to use. Either |
lambda |
The regularization parameter. |
sigma2 |
The scale in the |
d |
The degree in the |
threshold |
The convergence threshold. |
max_iter |
The maximum number of iterations. |
The RBF kernel has the following form:
exp(-||x-y||^2/sigma2).
The polynomial kernel has the following form:
(1+x'y/sigma2)^d.
A list containing:
xThe original x.
alphaThe vector of fitted weights.
kernelThe kernel.
sigma2The scale parameter.
dThe polynomial degree.
predict.MKLR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.