Skip to content

Instantly share code, notes, and snippets.

View gregoryely's full-sized avatar

Gregory gregoryely

  • Massachusetts Institute of Technology
  • Somerville
View GitHub Profile
@gregoryely
gregoryely / lda.m
Created May 5, 2013 02:16
SOME MATLAB
%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: