#' Used to train the model
#' input: lrn, task
#' output: trained model( mod)
train<-function(lrn,task)
{
mod <- mlr::train(lrn, task)
return(mod)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.