23 references to LdaInterface
Microsoft.ML.Transforms (23)
Text\LdaSingleBox.cs (23)
97private readonly LdaInterface.SafeLdaEngineHandle _engine; 133_engine = LdaInterface.CreateEngine(numTopic, numVocab, alpha, beta, numIter, likelihoodInterval, numThread, mhstep, maxDocToken); 142LdaInterface.AllocateModelMemory(_engine, numVocab, numTopic, tableSize, aliasTableSize); 149LdaInterface.AllocateDataMemory(_engine, docNum, corpusSize); 155LdaInterface.Train(_engine, null); 157LdaInterface.Train(_engine, trainOutput); 162LdaInterface.GetModelStat(_engine, out memBlockSize, out aliasMemBlockSize); 169LdaInterface.Test(_engine, numBurninIter, pLogLikelihood); 175LdaInterface.CleanData(_engine); 180LdaInterface.CleanModel(_engine); 186LdaInterface.GetWordTopic(trainer._engine, wordId, _topics, _probabilities, ref length); 187LdaInterface.SetWordTopic(_engine, wordId, _topics, _probabilities, length); 192LdaInterface.SetAlphaSum(_engine, averageDocLength); 207return LdaInterface.FeedInData(_engine, pID, pVal, termNum, NumVocab); 221return LdaInterface.FeedInDataDense(_engine, pVal, termNum, NumVocab); 227LdaInterface.GetDocTopic(_engine, docID, _topics, _probabilities, ref numTopicReturn); 277LdaInterface.TestOneDoc(_engine, pID, pVal, termNum, pTopic, pProb, ref numTopicReturn, numBurninIter, reset); 310LdaInterface.TestOneDocDense(_engine, pVal, termNum, pTopic, pProb, ref numTopicReturn, numBurninIter, reset); 327LdaInterface.InitializeBeforeTrain(_engine); 332LdaInterface.InitializeBeforeTest(_engine); 338LdaInterface.GetWordTopic(_engine, wordId, _topics, _probabilities, ref length); 349LdaInterface.GetTopicSummary(_engine, topicId, _summaryTerm, _summaryTermProb, ref length); 363LdaInterface.SetWordTopic(_engine, termID, _topics, _probabilities, topicNum);