R/tune.R

Defines functions tune

Documented in tune

#' Run the tuning algorithm results and the plot
#'
#' @param a The features object
#' @return The "Griffiths2004", "CaoJuan2009", "Arun2010", "Deveaud2014" algorithms
#' @export
#' @examples
#' tune(features)


tune <- function(a = features){
        a
        result <- ldatuning::FindTopicsNumber(
                a,
                topics = seq(from = 2, to = 25, by = 1),
                metrics = c("Griffiths2004", "CaoJuan2009", "Arun2010", "Deveaud2014"),
                method = "Gibbs",
                control = list(seed = 77),
                mc.cores = 2L,
                verbose = TRUE
        )
        return(ldatuning::FindTopicsNumber_plot(result))
}
cownr10r/pahl documentation built on May 6, 2019, 6:57 p.m.