| KL_plot | R Documentation | 
A plotting function for displaying Kullback-Liebler (KL) divergence across iterations of the optimization algorithm(s).
KL_plot(
  monitoring,
  n_0 = 10,
  n_stop = 1000,
  title = "Kullback-Liebler divergence trace"
)
monitoring | 
 
  | 
n_0 | 
 first iteration to plot. Default is 10.  | 
n_stop | 
 last iteration to plot. Default is 1000.  | 
title | 
 plot title. Default is   | 
a ggplot object
if(interactive()){
gold_standard_manual_prop <- c(table(HIPC_Stanford_1369_1A_labels) / 
 length(HIPC_Stanford_1369_1A_labels))
res <- CytOpT(X_s = HIPC_Stanford_1228_1A, X_t = HIPC_Stanford_1369_1A, 
             Lab_source = HIPC_Stanford_1228_1A_labels,
             theta_true = gold_standard_manual_prop,
             eps = 0.0001, lbd = 0.0001, n_iter = 10000, n_stoc=10,
             step_grad = 10, step = 5, power = 0.99, 
             method='both', monitoring = TRUE)
plot(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.