Nothing
#' @title cost.01
#' @description 0-1 loss function
#' @export cost.01
#' @return 0-1 loss
#' @param y Response
#' @param yhat The predicted value
cost.01 <- function(y, yhat)
{
mean(y!=yhat)
}
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.