R/poly.kernel.R

"poly.kernel" <-
  function(x, y=x, param.kernel = 1,...)
{
  if(is.null(param.kernel))
    param.kernel <- 1
  K= if(param.kernel == 1)
    x %*% t(y)
  else (x %*% t(y) + 1)^param.kernel
 if(param.kernel==1)  attr(K,"linear")=TRUE
  K
}

Try the svmpath package in your browser

Any scripts or data that you put into this service are public.

svmpath documentation built on July 14, 2020, 5:06 p.m.