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(); 341for (int i = 0; i < _ldaTrainer.NumTopic; i++) 343var scores = _ldaTrainer.GetTopicSummary(i); 358for (int i = 0; i < _ldaTrainer.NumTopic; i++) 360var scores = _ldaTrainer.GetTopicSummary(i); 378_ldaTrainer.GetModelStat(out memBlockSize, out aliasMemBlockSize); 389ctx.Writer.Write(_ldaTrainer.NumVocab); 394for (int i = 0; i < _ldaTrainer.NumVocab; i++) 396KeyValuePair<int, int>[] termTopicVector = _ldaTrainer.GetModel(i); 412_ldaTrainer.AllocateDataMemory(docNum, corpusSize); 448actualSize = _ldaTrainer.LoadDocDense(inputValues, termNum, input.Length); 450actualSize = _ldaTrainer.LoadDoc(input.GetIndices(), inputValues, termNum, input.Length); 459_ldaTrainer.InitializeBeforeTrain(); 462_ldaTrainer.Train(""); /* Need to pass in an empty string */ 476_ldaTrainer.InitializeBeforeTest(); 520retTopics = _ldaTrainer.TestDocDense(srcValues, termNum, numBurninIter, reset); 522retTopics = _ldaTrainer.TestDoc(src.GetIndices(), srcValues, termNum, numBurninIter, reset); 558_ldaTrainer.Dispose();