Nothing
yhat_SVM <- function(dfTrain, dfTest) {
Xtr <- as.matrix.data.frame(dfTrain)
Xte <- as.matrix.data.frame(dfTest)
p <- ncol(Xtr)-1
ytr <- Xtr[, p+1]
Xtr <- Xtr[,-(p+1)]
Xte <- Xte[,-(p+1)]
ans <- svm(x=Xtr, y=ytr)
predict(ans, newdata=Xte)
}
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.