#' Evaluate performance of prediction algorithm
#' input: pred object, list of measures for performance analysis
performance<-function(pred,measures=list(ppv,tpr,f1))
{
metrics<-mlr::performance(pred,measures)
metrics<-as.data.table(as.list(metrics))
return(metrics)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.