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