Nothing
predict.kerndwd = function(object, kern, x, newx,
type=c("class", "link"), ...) {
type = match.arg(type)
newx = drop(as.matrix(newx))
if (is.null(dim(newx))) dim(newx) = c(1, length(newx))
if (class(kern)[[1]] == "vanillakernel" && NROW(x) > NCOL(x))
nfit = newx %*% object$alpha[-1, , drop=FALSE] else
nfit = kernelMult(kern, newx, x, object$alpha[-1, , drop=FALSE])
nfit = sweep(nfit, MARGIN=2, object$alpha[1, , drop=FALSE], "+")
switch(type,
link = nfit,
class = ifelse(nfit > 0, 1, -1))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.