Inference for topic models - Code
Posted: 2016-05-18 , Modified: 2016-05-18
Tags: topic models
Posted: 2016-05-18 , Modified: 2016-05-18
Tags: topic models
gen_topic_vector: Generate row vectors of size \(K\) using Dirichlet (or Gaussian) \((\al,\ldots, \al)\).gen_doc: Generate topic vector, multiply by Ainterleavesinglen1: \(i\)th standard basis vectorprocess_row_delta: ?process_row_C: ?new_compute_B:threshold:log_likelihood:fast_grad_log_likelihood:projectl1_distanceprojected_ascent: ?toptop5is_anchorwordnear_anchorwordsparse_topicsuperflat_topictop_likelihood_supporttest_inferencesafe_mkdirwrite_docwrite_flatestimate_supportestimate_support_mapsplit_heldoutheldout_scoreheld_out_probability_ascentnearest_neighborsget_train_data