/* public BoWModel GetLDAModel() { BoWModel docModel = new BoWModel(); docModel.DocID = DocID; for (int i = 0; i < Length; i++) { int ldaWord = LDAUtil.argmax(phi, i); docModel.AddWord(Word(i), ldaWord); } docModel.ClassLabels = ClassLabels; return docModel; } */ public LDAModel GetLDAModel() { LDAModel ldaModel = new LDAModel(); ldaModel.DocID = DocID; ldaModel.ClassLabels = ClassLabels; ldaModel.Init(gamma); return ldaModel; }
public override DocModel LoadFromDB(BsonDocument bsonDoc) { LDAModel ldaDoc = new LDAModel(); return ldaDoc.LoadFromDB(bsonDoc, wordDict); }
bool IsSatisfied(LDAModel ldaDoc, PModel.PrecedenceProperty p2) { return true; }