3 instantiations of LatentDirichletAllocationEstimator
Microsoft.ML.Transforms (3)
EntryPoints\TextAnalytics.cs (1)
124var est = new LatentDirichletAllocationEstimator(h, cols);
Text\TextCatalog.cs (2)
636=> new LatentDirichletAllocationEstimator(CatalogUtils.GetEnvironment(catalog), 651=> new LatentDirichletAllocationEstimator(CatalogUtils.GetEnvironment(catalog), columns);
56 references to LatentDirichletAllocationEstimator
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipe.cs (2)
1547var opt = new LatentDirichletAllocationEstimator.ColumnOptions(name: "F1V", numberOfTopics: 3, 1549var est = ML.Transforms.Text.LatentDirichletAllocation(opt);
Microsoft.ML.Tests (1)
Transformers\TextFeaturizerTests.cs (1)
737var est = ml.Transforms.Text.LatentDirichletAllocation("F1V", resetRandomGenerator: true);
Microsoft.ML.Transforms (53)
EntryPoints\TextAnalytics.cs (2)
123var cols = input.Columns.Select(colPair => new LatentDirichletAllocationEstimator.ColumnOptions(colPair, input)).ToArray(); 124var est = new LatentDirichletAllocationEstimator(h, cols);
Text\LdaTransform.cs (36)
50/// <see cref="ITransformer"/> resulting from fitting a <see cref="LatentDirichletAllocationEstimator"/>. 62public int NumTopic = LatentDirichletAllocationEstimator.Defaults.NumberOfTopics; 67public float AlphaSum = LatentDirichletAllocationEstimator.Defaults.AlphaSum; 72public float Beta = LatentDirichletAllocationEstimator.Defaults.Beta; 77public int Mhstep = LatentDirichletAllocationEstimator.Defaults.SamplingStepCount; 82public int NumIterations = LatentDirichletAllocationEstimator.Defaults.MaximumNumberOfIterations; 85public int LikelihoodInterval = LatentDirichletAllocationEstimator.Defaults.LikelihoodInterval; 89public int NumThreads = LatentDirichletAllocationEstimator.Defaults.NumberOfThreads; 92public int NumMaxDocToken = LatentDirichletAllocationEstimator.Defaults.MaximumTokenCountPerDocument; 95public int NumSummaryTermPerTopic = LatentDirichletAllocationEstimator.Defaults.NumberOfSummaryTermsPerTopic; 100public int NumBurninIterations = LatentDirichletAllocationEstimator.Defaults.NumberOfBurninIterations; 103public bool ResetRandomGenerator = LatentDirichletAllocationEstimator.Defaults.ResetRandomGenerator; 106public bool OutputTopicWordSummary = LatentDirichletAllocationEstimator.Defaults.OutputTopicWordSummary; 229internal readonly LatentDirichletAllocationEstimator.ColumnOptions InfoEx; 242internal LdaState(IExceptionContext ectx, LatentDirichletAllocationEstimator.ColumnOptions ex, int numVocab) 279InfoEx = new LatentDirichletAllocationEstimator.ColumnOptions(ectx, ctx); 635private readonly LatentDirichletAllocationEstimator.ColumnOptions[] _columns; 645private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(LatentDirichletAllocationEstimator.ColumnOptions[] columns) 661params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 681_columns = new LatentDirichletAllocationEstimator.ColumnOptions[columnsLength]; 690internal static LatentDirichletAllocationTransformer TrainLdaTransformer(IHostEnvironment env, IDataView inputData, params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 728var cols = options.Columns.Select(colPair => new LatentDirichletAllocationEstimator.ColumnOptions(colPair, options)).ToArray(); 822private static List<VBuffer<ReadOnlyMemory<char>>> Train(IHostEnvironment env, IChannel ch, IDataView inputData, LdaState[] states, params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 1092_host = env.Register(nameof(LatentDirichletAllocationEstimator)); 1178int numberOfTopics = LatentDirichletAllocationEstimator.Defaults.NumberOfTopics, 1179float alphaSum = LatentDirichletAllocationEstimator.Defaults.AlphaSum, 1180float beta = LatentDirichletAllocationEstimator.Defaults.Beta, 1181int samplingStepCount = LatentDirichletAllocationEstimator.Defaults.SamplingStepCount, 1182int maximumNumberOfIterations = LatentDirichletAllocationEstimator.Defaults.MaximumNumberOfIterations, 1183int likelihoodInterval = LatentDirichletAllocationEstimator.Defaults.LikelihoodInterval, 1184int numberOfThreads = LatentDirichletAllocationEstimator.Defaults.NumberOfThreads, 1185int maximumTokenCountPerDocument = LatentDirichletAllocationEstimator.Defaults.MaximumTokenCountPerDocument, 1186int numberOfSummaryTermsPerTopic = LatentDirichletAllocationEstimator.Defaults.NumberOfSummaryTermsPerTopic, 1187int numberOfBurninIterations = LatentDirichletAllocationEstimator.Defaults.NumberOfBurninIterations, 1188bool resetRandomGenerator = LatentDirichletAllocationEstimator.Defaults.ResetRandomGenerator, 1189bool outputTopicWordSummary = LatentDirichletAllocationEstimator.Defaults.OutputTopicWordSummary)
Text\TextCatalog.cs (15)
595/// Create a <see cref="LatentDirichletAllocationEstimator"/>, which uses <a href="https://arxiv.org/abs/1412.1576">LightLDA</a> to transform text (represented as a vector of floats) 622public static LatentDirichletAllocationEstimator LatentDirichletAllocation(this TransformsCatalog.TextTransforms catalog, 625int numberOfTopics = LatentDirichletAllocationEstimator.Defaults.NumberOfTopics, 626float alphaSum = LatentDirichletAllocationEstimator.Defaults.AlphaSum, 627float beta = LatentDirichletAllocationEstimator.Defaults.Beta, 628int samplingStepCount = LatentDirichletAllocationEstimator.Defaults.SamplingStepCount, 629int maximumNumberOfIterations = LatentDirichletAllocationEstimator.Defaults.MaximumNumberOfIterations, 630int likelihoodInterval = LatentDirichletAllocationEstimator.Defaults.LikelihoodInterval, 631int numberOfThreads = LatentDirichletAllocationEstimator.Defaults.NumberOfThreads, 632int maximumTokenCountPerDocument = LatentDirichletAllocationEstimator.Defaults.MaximumTokenCountPerDocument, 633int numberOfSummaryTermsPerTopic = LatentDirichletAllocationEstimator.Defaults.NumberOfSummaryTermsPerTopic, 634int numberOfBurninIterations = LatentDirichletAllocationEstimator.Defaults.NumberOfBurninIterations, 635bool resetRandomGenerator = LatentDirichletAllocationEstimator.Defaults.ResetRandomGenerator) 648internal static LatentDirichletAllocationEstimator LatentDirichletAllocation( 650params LatentDirichletAllocationEstimator.ColumnOptions[] columns)