perplexity function

Optimize the hyper-parameters for LDA