Learn R Programming

celda (version 0.0.0.9000)

visualize_model_performance: Visualize various performance metrics as a function of K / L to aid parameter choice.

Description

Visualize various performance metrics as a function of K / L to aid parameter choice.

Usage

visualize_model_performance(celda.list, method, title, log = FALSE)

Arguments

celda.list

A celda_list object as returned from *celda()*

method

Which performance metric to visualize. One of ("perplexity", "harmonic", "loglik"). "perplexity" calculates the inverse of the geometric mean of the log likelihoods from each iteration of Gibbs sampling. "harmonic" calculates the marginal likelihood has the harmonic mean of the likelihoods. "loglik" plots the highest log-likelihood during Gibbs iteration.

title

Title for the visualize_model_performance

log

Set log to TRUE to visualize the log(perplexity) of Celda_CG objects. Does not work for "harmonic" metric

Value

A ggplot object containing the requested plot(s)