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