20 references to SafeLdaEngineHandle
Microsoft.ML.Transforms (20)
Text\LdaSingleBox.cs (20)
34internal static extern SafeLdaEngineHandle CreateEngine(int numTopic, int numVocab, float alphaSum, float beta, int numIter, 38internal static extern void AllocateModelMemory(SafeLdaEngineHandle engine, int numTopic, int numVocab, long tableSize, long aliasTableSize); 41internal static extern void AllocateDataMemory(SafeLdaEngineHandle engine, int docNum, long corpusSize); 44internal static extern void Train(SafeLdaEngineHandle engine, string trainOutput); 47internal static extern void GetModelStat(SafeLdaEngineHandle engine, out long memBlockSize, out long aliasMemBlockSize); 50internal static extern void Test(SafeLdaEngineHandle engine, int numBurninIter, float[] pLogLikelihood); 53internal static extern void CleanData(SafeLdaEngineHandle engine); 56internal static extern void CleanModel(SafeLdaEngineHandle engine); 62internal static extern void GetWordTopic(SafeLdaEngineHandle engine, int wordId, int[] pTopic, int[] pProb, ref int length); 65internal static extern void SetWordTopic(SafeLdaEngineHandle engine, int wordId, int[] pTopic, int[] pProb, int length); 68internal static extern void SetAlphaSum(SafeLdaEngineHandle engine, float avgDocLength); 71internal static extern int FeedInData(SafeLdaEngineHandle engine, int[] termId, int[] termFreq, int termNum, int numVocab); 74internal static extern int FeedInDataDense(SafeLdaEngineHandle engine, int[] termFreq, int termNum, int numVocab); 77internal static extern void GetDocTopic(SafeLdaEngineHandle engine, int docId, int[] pTopic, int[] pProb, ref int numTopicReturn); 80internal static extern void GetTopicSummary(SafeLdaEngineHandle engine, int topicId, int[] pWords, float[] pProb, ref int numTopicReturn); 83internal static extern void TestOneDoc(SafeLdaEngineHandle engine, int[] termId, int[] termFreq, int termNum, int[] pTopics, int[] pProbs, ref int numTopicsMax, int numBurnIter, bool reset); 86internal static extern void TestOneDocDense(SafeLdaEngineHandle engine, int[] termFreq, int termNum, int[] pTopics, int[] pProbs, ref int numTopicsMax, int numBurninIter, bool reset); 89internal static extern void InitializeBeforeTrain(SafeLdaEngineHandle engine); 92internal static extern void InitializeBeforeTest(SafeLdaEngineHandle engine); 97private readonly LdaInterface.SafeLdaEngineHandle _engine;