#' @title Connect to H2O Cluster
#' @description Starts and connect to a H2O cluster.
#' @param min_mem_size a character string specifying the minimum size, in bytes, of the memory
#' allocation pool in H2O.
#' @param max_mem_size a character string specifying the maximum size, in bytes, of the memory
#' allocation pool in H2O.
#' @param nthreads a numeric specifying the number of threads in the thread pool. This relates very closely to the number of CPUs used.
#' -1 means use all CPUs on the host (default values). A positive integer specifies the number of CPUs directly.
#' @details This function is a wrapper for the `h2o.init` function from the `H2O` package. This
#' function is used to start and connect to a H2O cluster. A connection to a H2O cluster must be
#' established before any modelling. For more details, see the manual for `h2o.init`.
#' @rdname nano_init
#' @export
nano_init <- function(min_mem_size = NULL, max_mem_size = NULL, nthreads = -1) {
nano:::quiet(h2o.init(min_mem_size = min_mem_size,
max_mem_size = max_mem_size,
nthreads = nthreads))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.