#' @title Calculate Accuracy of binary classification
#' @param label True labels
#' @param pred predicted labels
#' @export
accuracy=function(label,pred){
sum(diag(table(label,pred)))/length(label)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.