View source: R/functions_tuning.R
tune_lambda | R Documentation |
Experiment function for tuning lambda.
tune_lambda(
docs,
docName = "text",
index_name = "id",
labelsName = "label",
n_clusters = c(2),
maxQuery = 1,
active = FALSE,
lambdas,
seed,
prop_init = 0.1,
parallel = TRUE,
k = 5
)
docs |
Dataframe for courpus. |
docName |
String; name of variable for document text. |
index_name |
String; name of variable for corpus index. |
labelsName |
String; name of variable for document labels. |
n_clusters |
vec; sequence of number of clusters to be tested. |
maxQuery |
int; max number of documents ot query per iteration. |
lambdas |
vec; sequence of lambda values to test. |
seed |
int; Seed value for randomization. |
parallel |
logical; Whether or not to parallelize the tuning process. |
k |
int; number for cross-validation. |
prop_init; |
float; Proportion of docs in each training set to directly label; the rest are used by the EM. |
Results from experiment. parallel select best # of clusters and lambda in terms of the mean F1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.