R/gbt.load.R

Defines functions gbt.load

Documented in gbt.load

#' Load an aGTBoost Model
#'
#' \code{gbt.load} is an interface for loading a \pkg{agtboost} model.
#'
#' @param file Valid file-path to a stored aGTBoost model
#'
#' @details
#' 
#' The load function for \pkg{agtboost}.
#' Loades a GTB model from a txt file.
#' 
#'
#' @return
#' Trained aGTBoost model.
#'
#' @seealso
#' \code{\link{gbt.save}}
#'
#'
#' @rdname gbt.load
#' @export
gbt.load <- function(file)
{
    # check valid file path
    
    mod <- new(ENSEMBLE)
    mod$load_model(file)
    return(mod)
}

Try the agtboost package in your browser

Any scripts or data that you put into this service are public.

agtboost documentation built on Nov. 24, 2021, 1:16 a.m.