2 writes to _ldaTrainer
Microsoft.ML.Transforms (2)
Text\LdaTransform.cs (2)
252
_ldaTrainer
= new LdaSingleBox(
290
_ldaTrainer
= new LdaSingleBox(
20 references to _ldaTrainer
Microsoft.ML.Transforms (20)
Text\LdaTransform.cs (20)
303
_ldaTrainer
.AllocateModelMemory(_numVocab, InfoEx.NumberOfTopics, memBlockSize, aliasMemBlockSize);
322
_ldaTrainer
.SetModel(termID, topicId, topicProb, termTopicNum);
330
_ldaTrainer
.InitializeBeforeTest();
341
for (int i = 0; i <
_ldaTrainer
.NumTopic; i++)
343
var scores =
_ldaTrainer
.GetTopicSummary(i);
358
for (int i = 0; i <
_ldaTrainer
.NumTopic; i++)
360
var scores =
_ldaTrainer
.GetTopicSummary(i);
378
_ldaTrainer
.GetModelStat(out memBlockSize, out aliasMemBlockSize);
389
ctx.Writer.Write(
_ldaTrainer
.NumVocab);
394
for (int i = 0; i <
_ldaTrainer
.NumVocab; i++)
396
KeyValuePair<int, int>[] termTopicVector =
_ldaTrainer
.GetModel(i);
412
_ldaTrainer
.AllocateDataMemory(docNum, corpusSize);
448
actualSize =
_ldaTrainer
.LoadDocDense(inputValues, termNum, input.Length);
450
actualSize =
_ldaTrainer
.LoadDoc(input.GetIndices(), inputValues, termNum, input.Length);
459
_ldaTrainer
.InitializeBeforeTrain();
462
_ldaTrainer
.Train(""); /* Need to pass in an empty string */
476
_ldaTrainer
.InitializeBeforeTest();
520
retTopics =
_ldaTrainer
.TestDocDense(srcValues, termNum, numBurninIter, reset);
522
retTopics =
_ldaTrainer
.TestDoc(src.GetIndices(), srcValues, termNum, numBurninIter, reset);
558
_ldaTrainer
.Dispose();