Skip to main content

parse_lda_learning

Function parse_lda_learning 

Source
pub fn parse_lda_learning(
    s: &str,
    batch_size: usize,
    n_epochs: usize,
) -> Option<LdaLearning>
Expand description

Parse the LDA learning strategy.

§Params

  • s - String to parse. One of "batch" or "online".
  • batch_size - Documents per mini-batch, used only by the online variant.
  • n_epochs - Passes over the corpus, used only by the online variant.

§Returns

The option of LdaLearning, with the online variant carrying the default tau0 and kappa.