#' hist_text
#'
#' Internal function used in plotting mlblob objects. Gets model id from h2o model object
#' @param id_final Character Model Id.
#' @param hist_melted data.frame object contianing long form training history of H2O model.
#' @return Character object Model id.
#' @export
hist_text <- function(id_final, hist_melted) {
sub <- hist_melted[hist_melted$variable %in% id_final,]
lab_x <- max(sub$iteration)
lab_y <- sub$value[which(sub$iteration == lab_x)]
col_x <- rep(lab_x, nrow(sub))
col_y <- rep(lab_y, nrow(sub))
sub$lab_x <- col_x
sub$lab_y <- col_y
sub$lab_x[which(sub$iteration != lab_x)] <- NA
sub$lab_y[which(sub$iteration != lab_x)] <- NA
sub
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.