com.datumbox.framework.core.machinelearning.topicmodeling
Class LatentDirichletAllocation
- java.lang.Object
-
- com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer<MP,TP>
-
- com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractModeler<MP,TP>
-
- com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractTopicModeler<LatentDirichletAllocation.ModelParameters,LatentDirichletAllocation.TrainingParameters>
-
- com.datumbox.framework.core.machinelearning.topicmodeling.LatentDirichletAllocation
-
- All Implemented Interfaces:
- Savable, Trainable<LatentDirichletAllocation.ModelParameters,LatentDirichletAllocation.TrainingParameters>, java.lang.AutoCloseable
public class LatentDirichletAllocation extends AbstractTopicModeler<LatentDirichletAllocation.ModelParameters,LatentDirichletAllocation.TrainingParameters>
Implementation of the Latent Dirichlet Allocation algorithm. References: http://videolectures.net/mlss09uk_blei_tm/ http://www.ncbi.nlm.nih.gov/pmc/articles/PMC387300/ https://github.com/angeloskath/php-nlp-tools/blob/master/src/NlpTools/Models/Lda.php https://gist.github.com/mblondel/542786 http://stats.stackexchange.com/questions/9315/topic-prediction-using-latent-dirichlet-allocation http://home.uchicago.edu/~lkorsos/GibbsNGramLDA.pdf http://machinelearning.wustl.edu/mlpapers/paper_files/BleiNJ03.pdf http://www.cl.cam.ac.uk/teaching/1213/L101/clark_lectures/lect7.pdf http://www.ics.uci.edu/~newman/pubs/fastlda.pdf http://www.tnkcs.inf.elte.hu/vedes/Biro_Istvan_Tezisek_en.pdf (Limit Gibbs Sampler & unseen inference) http://airweb.cse.lehigh.edu/2008/submissions/biro_2008_latent_dirichlet_allocation_spam.pdf (unseen inference) http://www.cs.cmu.edu/~akyrola/10702project/kyrola10702FINAL.pdf http://stats.stackexchange.com/questions/18167/how-to-calculate-perplexity-of-a-holdout-with-latent-dirichlet-allocation http://www.slideserve.com/adamdaniel/an-introduction-to-latent-dirichlet-allocation-lda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classLatentDirichletAllocation.ModelParametersBase class for every ModelParameter class in the framework.static classLatentDirichletAllocation.TrainingParametersThe AbstractTrainingParameters class stores the parameters that can be changed before training the algorithm.-
Nested classes/interfaces inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer
AbstractTrainer.AbstractModelParameters, AbstractTrainer.AbstractTrainingParameters
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AssociativeArray2DgetWordProbabilitiesPerTopic()Returns the distribution of the words in each topic.-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractModeler
predict
-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer
close, delete, fit, getModelParameters, getTrainingParameters, save
-
-
-
-
Method Detail
-
getWordProbabilitiesPerTopic
public AssociativeArray2D getWordProbabilitiesPerTopic()
Returns the distribution of the words in each topic.- Returns:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG