Nothing
train_LMboost <-
function(X,y,pars = list()) #
{
# centralize X
#X <- X - matrix( rep( colSums(X)/dim(X)[1],dim(X)[1]), dim(X)[1], dim(X)[2], byrow = TRUE)
y <- y - rep( mean(y), length(y))
yy <- as.vector(y)
options(warn=-1)
gb <- glmboost(X,yy, center = TRUE)
options(warn=1)
result <- list()
result$Yfit <- gb$fitted()
result$residuals <- gb$resid()
result$model <- gb
return(result)
}
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.