This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Function lda takes in a list of Words and documents and generates the | |
%probability matrices for LDA | |
% INPUTS: | |
% W -list of words | |
% D -list of documents assigned to each word | |
% nTopics - number of topics to use for LDA | |
% maxIter - maximum iterations to run LDA | |
% nVocab - (optional) number of unique words | |
% | |
% Outputs: |