Session Ready
Exercise

Classify test data

You have a data object train_mod with an LDA model, and a document-term matrix test_dtm with data for the test cases. Now you can see how well (or how poorly) our classifier performs.

Instructions
100 XP
  • Obtain posterior probabilities for test documents using function posterior().
  • Probabilities of topics in documents are contained in the element $topics inside the result list. Display the matrix with topic probabilities.