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